TypeScript/tests/baselines/reference/classWithEmptyBody.types

65 lines
1.7 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/classes/classDeclarations/classBody/classWithEmptyBody.ts ===
class C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(classWithEmptyBody.ts, 0, 0))
2014-08-15 23:33:16 +02:00
}
var c: C;
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>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
2015-04-13 23:01:57 +02:00
>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; }
2015-04-13 23:01:57 +02:00
>c : C, Symbol(c, Decl(classWithEmptyBody.ts, 3, 3))
2014-08-15 23:33:16 +02:00
>{ foo: '' } : { foo: string; }
2015-04-13 23:01:57 +02:00
>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
2015-04-13 23:01:57 +02:00
>c : C, Symbol(c, Decl(classWithEmptyBody.ts, 3, 3))
2014-08-15 23:33:16 +02:00
>() => { } : () => void
class D {
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>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
2015-04-13 23:01:57 +02:00
>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; }
2015-04-13 23:01:57 +02:00
>d : D, Symbol(d, Decl(classWithEmptyBody.ts, 15, 3))
2014-08-15 23:33:16 +02:00
>{ foo: '' } : { foo: string; }
2015-04-13 23:01:57 +02:00
>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
2015-04-13 23:01:57 +02:00
>d : D, Symbol(d, Decl(classWithEmptyBody.ts, 15, 3))
2014-08-15 23:33:16 +02:00
>() => { } : () => void