mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
21 lines
235 B
TypeScript
21 lines
235 B
TypeScript
|
var x: typeof undefined;
|
||
|
|
||
|
enum E { A }
|
||
|
E = x;
|
||
|
E.A = x;
|
||
|
|
||
|
class C { foo: string }
|
||
|
var f: C;
|
||
|
C = x;
|
||
|
|
||
|
interface I { foo: string }
|
||
|
var g: I;
|
||
|
g = x;
|
||
|
I = x;
|
||
|
|
||
|
module M { export var x = 1; }
|
||
|
M = x;
|
||
|
|
||
|
function i<T>(a: T) { }
|
||
|
// BUG 767030
|
||
|
i = x;
|