mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +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; |