TypeScript/tests/baselines/reference/staticInstanceResolution2.types
2015-04-13 14:29:37 -07:00

27 lines
937 B
Plaintext

=== tests/cases/compiler/staticInstanceResolution2.ts ===
class A { }
>A : A, Symbol(A, Decl(staticInstanceResolution2.ts, 0, 0))
A.hasOwnProperty('foo');
>A.hasOwnProperty('foo') : boolean
>A.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
>A : typeof A, Symbol(A, Decl(staticInstanceResolution2.ts, 0, 0))
>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
>'foo' : string
class B {
>B : B, Symbol(B, Decl(staticInstanceResolution2.ts, 1, 24))
constructor() { }
}
B.hasOwnProperty('foo');
>B.hasOwnProperty('foo') : boolean
>B.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
>B : typeof B, Symbol(B, Decl(staticInstanceResolution2.ts, 1, 24))
>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
>'foo' : string