45 lines
867 B
Text
45 lines
867 B
Text
=== tests/cases/compiler/null.ts ===
|
|
|
|
var x=null;
|
|
>x : Symbol(x, Decl(null.ts, 1, 3))
|
|
|
|
var y=3+x;
|
|
>y : Symbol(y, Decl(null.ts, 2, 3))
|
|
>x : Symbol(x, Decl(null.ts, 1, 3))
|
|
|
|
var z=3+null;
|
|
>z : Symbol(z, Decl(null.ts, 3, 3))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(null.ts, 3, 13))
|
|
}
|
|
function f() {
|
|
>f : Symbol(f, Decl(null.ts, 5, 1))
|
|
|
|
return null;
|
|
return new C();
|
|
>C : Symbol(C, Decl(null.ts, 3, 13))
|
|
}
|
|
function g() {
|
|
>g : Symbol(g, Decl(null.ts, 9, 1))
|
|
|
|
return null;
|
|
return 3;
|
|
}
|
|
interface I {
|
|
>I : Symbol(I, Decl(null.ts, 13, 1))
|
|
|
|
x:any;
|
|
>x : Symbol(I.x, Decl(null.ts, 14, 13))
|
|
|
|
y:number;
|
|
>y : Symbol(I.y, Decl(null.ts, 15, 10))
|
|
}
|
|
var w:I={x:null,y:3};
|
|
>w : Symbol(w, Decl(null.ts, 18, 3))
|
|
>I : Symbol(I, Decl(null.ts, 13, 1))
|
|
>x : Symbol(x, Decl(null.ts, 18, 9))
|
|
>y : Symbol(y, Decl(null.ts, 18, 16))
|
|
|
|
|
|
|