mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
29 lines
369 B
TypeScript
29 lines
369 B
TypeScript
var x: void;
|
|
|
|
var a: boolean = x;
|
|
var b: string = x;
|
|
var c: number = x;
|
|
var d: typeof undefined = x;
|
|
|
|
class C { foo: string; }
|
|
var e: C = x;
|
|
|
|
interface I { bar: string; }
|
|
var f: I = x;
|
|
|
|
var g: { baz: string } = 1;
|
|
var g2: { 0: number } = 1;
|
|
|
|
module M { export var x = 1; }
|
|
M = x;
|
|
|
|
function i<T>(a: T) {
|
|
a = x;
|
|
}
|
|
i = x;
|
|
|
|
enum E { A }
|
|
x = E;
|
|
x = E.A;
|
|
|
|
x = { f() { } } |