TypeScript/tests/baselines/reference/typeofClass2.types

56 lines
2 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/types/specifyingTypes/typeQueries/typeofClass2.ts ===
class C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(typeofClass2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
constructor(x: number);
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(typeofClass2.ts, 1, 16))
2014-08-15 23:33:16 +02:00
constructor(x: string);
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(typeofClass2.ts, 2, 16))
2014-08-15 23:33:16 +02:00
constructor(x) { }
2015-04-13 23:01:57 +02:00
>x : any, Symbol(x, Decl(typeofClass2.ts, 3, 16))
2014-08-15 23:33:16 +02:00
static foo(x: number);
2015-04-13 23:01:57 +02:00
>foo : { (x: number): any; (x: C): any; }, Symbol(C.foo, Decl(typeofClass2.ts, 3, 22), Decl(typeofClass2.ts, 5, 26), Decl(typeofClass2.ts, 6, 21))
>x : number, Symbol(x, Decl(typeofClass2.ts, 5, 15))
2014-08-15 23:33:16 +02:00
static foo(x: C);
2015-04-13 23:01:57 +02:00
>foo : { (x: number): any; (x: C): any; }, Symbol(C.foo, Decl(typeofClass2.ts, 3, 22), Decl(typeofClass2.ts, 5, 26), Decl(typeofClass2.ts, 6, 21))
>x : C, Symbol(x, Decl(typeofClass2.ts, 6, 15))
>C : C, Symbol(C, Decl(typeofClass2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
static foo(x) { }
2015-04-13 23:01:57 +02:00
>foo : { (x: number): any; (x: C): any; }, Symbol(C.foo, Decl(typeofClass2.ts, 3, 22), Decl(typeofClass2.ts, 5, 26), Decl(typeofClass2.ts, 6, 21))
>x : any, Symbol(x, Decl(typeofClass2.ts, 7, 15))
2014-08-15 23:33:16 +02:00
static bar(x) { }
2015-04-13 23:01:57 +02:00
>bar : (x: any) => void, Symbol(C.bar, Decl(typeofClass2.ts, 7, 21))
>x : any, Symbol(x, Decl(typeofClass2.ts, 9, 15))
2014-08-15 23:33:16 +02:00
}
class D extends C {
2015-04-13 23:01:57 +02:00
>D : D, Symbol(D, Decl(typeofClass2.ts, 10, 1))
>C : C, Symbol(C, Decl(typeofClass2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
static baz(x: number) { }
2015-04-13 23:01:57 +02:00
>baz : (x: number) => void, Symbol(D.baz, Decl(typeofClass2.ts, 12, 19))
>x : number, Symbol(x, Decl(typeofClass2.ts, 13, 15))
2014-08-15 23:33:16 +02:00
foo() { }
2015-04-13 23:01:57 +02:00
>foo : () => void, Symbol(foo, Decl(typeofClass2.ts, 13, 29))
2014-08-15 23:33:16 +02:00
}
var d: D;
2015-04-13 23:01:57 +02:00
>d : D, Symbol(d, Decl(typeofClass2.ts, 17, 3))
>D : D, Symbol(D, Decl(typeofClass2.ts, 10, 1))
2014-08-15 23:33:16 +02:00
var r1: typeof D;
2015-04-13 23:01:57 +02:00
>r1 : typeof D, Symbol(r1, Decl(typeofClass2.ts, 19, 3))
>D : typeof D, Symbol(D, Decl(typeofClass2.ts, 10, 1))
2014-08-15 23:33:16 +02:00
var r2: typeof d;
2015-04-13 23:01:57 +02:00
>r2 : D, Symbol(r2, Decl(typeofClass2.ts, 20, 3))
>d : D, Symbol(d, Decl(typeofClass2.ts, 17, 3))
2014-08-15 23:33:16 +02:00