44 lines
861 B
Text
44 lines
861 B
Text
=== tests/cases/compiler/null.ts ===
|
|
var x=null;
|
|
>x : Symbol(x, Decl(null.ts, 0, 3))
|
|
|
|
var y=3+x;
|
|
>y : Symbol(y, Decl(null.ts, 1, 3))
|
|
>x : Symbol(x, Decl(null.ts, 0, 3))
|
|
|
|
var z=3+null;
|
|
>z : Symbol(z, Decl(null.ts, 2, 3))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(null.ts, 2, 13))
|
|
}
|
|
function f() {
|
|
>f : Symbol(f, Decl(null.ts, 4, 1))
|
|
|
|
return null;
|
|
return new C();
|
|
>C : Symbol(C, Decl(null.ts, 2, 13))
|
|
}
|
|
function g() {
|
|
>g : Symbol(g, Decl(null.ts, 8, 1))
|
|
|
|
return null;
|
|
return 3;
|
|
}
|
|
interface I {
|
|
>I : Symbol(I, Decl(null.ts, 12, 1))
|
|
|
|
x:any;
|
|
>x : Symbol(x, Decl(null.ts, 13, 13))
|
|
|
|
y:number;
|
|
>y : Symbol(y, Decl(null.ts, 14, 10))
|
|
}
|
|
var w:I={x:null,y:3};
|
|
>w : Symbol(w, Decl(null.ts, 17, 3))
|
|
>I : Symbol(I, Decl(null.ts, 12, 1))
|
|
>x : Symbol(x, Decl(null.ts, 17, 9))
|
|
>y : Symbol(y, Decl(null.ts, 17, 16))
|
|
|
|
|
|
|