TypeScript/tests/baselines/reference/staticInstanceResolution2.types

27 lines
499 B
Plaintext
Raw Normal View History

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