TypeScript/tests/baselines/reference/staticInstanceResolution2.types

27 lines
937 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/staticInstanceResolution2.ts ===
class A { }
2015-04-13 23:01:57 +02:00
>A : A, Symbol(A, Decl(staticInstanceResolution2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
A.hasOwnProperty('foo');
>A.hasOwnProperty('foo') : boolean
2015-04-13 23:01:57 +02:00
>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))
2015-04-13 21:36:11 +02:00
>'foo' : string
2014-08-15 23:33:16 +02:00
class B {
2015-04-13 23:01:57 +02:00
>B : B, Symbol(B, Decl(staticInstanceResolution2.ts, 1, 24))
2014-08-15 23:33:16 +02:00
constructor() { }
}
B.hasOwnProperty('foo');
>B.hasOwnProperty('foo') : boolean
2015-04-13 23:01:57 +02:00
>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))
2015-04-13 21:36:11 +02:00
>'foo' : string
2014-08-15 23:33:16 +02:00