26 lines
499 B
Text
26 lines
499 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
|
|
>'foo' : string
|
|
|
|
class B {
|
|
>B : B
|
|
|
|
constructor() { }
|
|
}
|
|
B.hasOwnProperty('foo');
|
|
>B.hasOwnProperty('foo') : boolean
|
|
>B.hasOwnProperty : (v: string) => boolean
|
|
>B : typeof B
|
|
>hasOwnProperty : (v: string) => boolean
|
|
>'foo' : string
|
|
|
|
|
|
|
|
|