25 lines
465 B
Text
25 lines
465 B
Text
|
=== 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
|
||
|
|
||
|
|
||
|
|
||
|
|