mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
22 lines
223 B
TypeScript
22 lines
223 B
TypeScript
|
var x: void;
|
||
|
x = 1;
|
||
|
x = true;
|
||
|
x = '';
|
||
|
x = {}
|
||
|
|
||
|
class C { foo: string; }
|
||
|
var c: C;
|
||
|
x = C;
|
||
|
x = c;
|
||
|
|
||
|
interface I { foo: string; }
|
||
|
var i: I;
|
||
|
x = i;
|
||
|
|
||
|
module M { export var x = 1; }
|
||
|
x = M;
|
||
|
|
||
|
function f<T>(a: T) {
|
||
|
x = a;
|
||
|
}
|
||
|
x = f;
|