TypeScript/tests/baselines/reference/staticPrototypePropertyOnClass.types

44 lines
558 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/staticPrototypePropertyOnClass.ts ===
class c1 {
>c1 : c1
2014-08-15 23:33:16 +02:00
}
class c2<T> {
>c2 : c2<T>
>T : T
2014-08-15 23:33:16 +02:00
}
class c3 {
>c3 : c3
2014-08-15 23:33:16 +02:00
constructor() {
}
}
class c4 {
>c4 : c4
2014-08-15 23:33:16 +02:00
constructor(param: string);
>param : string
2014-08-15 23:33:16 +02:00
constructor(param: number);
>param : number
2014-08-15 23:33:16 +02:00
constructor(param: any) {
>param : any
2014-08-15 23:33:16 +02:00
}
}
var a = c1;
>a : typeof c1
>c1 : typeof c1
2014-08-15 23:33:16 +02:00
var b = c2;
>b : typeof c2
>c2 : typeof c2
2014-08-15 23:33:16 +02:00
var c = c3;
>c : typeof c3
>c3 : typeof c3
2014-08-15 23:33:16 +02:00
var d = c4;
>d : typeof c4
>c4 : typeof c4
2014-08-15 23:33:16 +02:00