mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +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; |