TypeScript/tests/baselines/reference/staticInstanceResolution2.types

25 lines
465 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/staticInstanceResolution2.ts ===
class A { }
>A : A
A.hasOwnProperty('foo');
>A.hasOwnProperty('foo') : boolean
>A.hasOwnProperty : (v: string) => boolean
>A : typeof A
>hasOwnProperty : (v: string) => boolean
class B {
>B : B
constructor() { }
}
B.hasOwnProperty('foo');
>B.hasOwnProperty('foo') : boolean
>B.hasOwnProperty : (v: string) => boolean
>B : typeof B
>hasOwnProperty : (v: string) => boolean