23 lines
No EOL
198 B
TypeScript
23 lines
No EOL
198 B
TypeScript
// Should all be allowed
|
|
|
|
module M {
|
|
}
|
|
M = null;
|
|
|
|
class C {
|
|
}
|
|
C = null;
|
|
|
|
enum E {
|
|
}
|
|
E = null;
|
|
|
|
function f() { }
|
|
f = null;
|
|
|
|
var x = 1;
|
|
x = null;
|
|
|
|
function g(x) {
|
|
x = null;
|
|
} |