TypeScript/tests/baselines/reference/classWithEmptyBody.types

65 lines
1.6 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/classes/classDeclarations/classBody/classWithEmptyBody.ts ===
class C {
>C : C, Symbol(C,Decl(classWithEmptyBody.ts,0,0))
2014-08-15 23:33:16 +02:00
}
var c: C;
>c : C, Symbol(c,Decl(classWithEmptyBody.ts,3,3))
>C : C, Symbol(C,Decl(classWithEmptyBody.ts,0,0))
2014-08-15 23:33:16 +02:00
var o: {} = c;
>o : {}, Symbol(o,Decl(classWithEmptyBody.ts,4,3),Decl(classWithEmptyBody.ts,16,3))
>c : C, Symbol(c,Decl(classWithEmptyBody.ts,3,3))
2014-08-15 23:33:16 +02:00
c = 1;
>c = 1 : number
>c : C, Symbol(c,Decl(classWithEmptyBody.ts,3,3))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
c = { foo: '' }
>c = { foo: '' } : { foo: string; }
>c : C, Symbol(c,Decl(classWithEmptyBody.ts,3,3))
2014-08-15 23:33:16 +02:00
>{ foo: '' } : { foo: string; }
>foo : string, Symbol(foo,Decl(classWithEmptyBody.ts,6,5))
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
c = () => { }
>c = () => { } : () => void
>c : C, Symbol(c,Decl(classWithEmptyBody.ts,3,3))
2014-08-15 23:33:16 +02:00
>() => { } : () => void
class D {
>D : D, Symbol(D,Decl(classWithEmptyBody.ts,7,13))
2014-08-15 23:33:16 +02:00
constructor() {
return 1;
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
}
var d: D;
>d : D, Symbol(d,Decl(classWithEmptyBody.ts,15,3))
>D : D, Symbol(D,Decl(classWithEmptyBody.ts,7,13))
2014-08-15 23:33:16 +02:00
var o: {} = d;
>o : {}, Symbol(o,Decl(classWithEmptyBody.ts,4,3),Decl(classWithEmptyBody.ts,16,3))
>d : D, Symbol(d,Decl(classWithEmptyBody.ts,15,3))
2014-08-15 23:33:16 +02:00
d = 1;
>d = 1 : number
>d : D, Symbol(d,Decl(classWithEmptyBody.ts,15,3))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
d = { foo: '' }
>d = { foo: '' } : { foo: string; }
>d : D, Symbol(d,Decl(classWithEmptyBody.ts,15,3))
2014-08-15 23:33:16 +02:00
>{ foo: '' } : { foo: string; }
>foo : string, Symbol(foo,Decl(classWithEmptyBody.ts,18,5))
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
d = () => { }
>d = () => { } : () => void
>d : D, Symbol(d,Decl(classWithEmptyBody.ts,15,3))
2014-08-15 23:33:16 +02:00
>() => { } : () => void