mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
26 lines
253 B
TypeScript
26 lines
253 B
TypeScript
var x: void;
|
|
x = 1;
|
|
x = '';
|
|
x = true;
|
|
|
|
enum E { A }
|
|
x = E;
|
|
x = E.A;
|
|
|
|
class C { foo: string }
|
|
var a: C;
|
|
x = a;
|
|
|
|
interface I { foo: string }
|
|
var b: I;
|
|
x = b;
|
|
|
|
x = { f() {} }
|
|
|
|
module M { export var x = 1; }
|
|
x = M;
|
|
|
|
function f<T>(a: T) {
|
|
x = a;
|
|
}
|
|
x = f; |