33 lines
601 B
Plaintext
33 lines
601 B
Plaintext
|
=== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classAppearsToHaveMembersOfObject.ts ===
|
||
|
class C { foo: string; }
|
||
|
>C : C
|
||
|
>foo : string
|
||
|
|
||
|
var c: C;
|
||
|
>c : C
|
||
|
>C : C
|
||
|
|
||
|
var r = c.toString();
|
||
|
>r : string
|
||
|
>c.toString() : string
|
||
|
>c.toString : () => string
|
||
|
>c : C
|
||
|
>toString : () => string
|
||
|
|
||
|
var r2 = c.hasOwnProperty('');
|
||
|
>r2 : boolean
|
||
|
>c.hasOwnProperty('') : boolean
|
||
|
>c.hasOwnProperty : (v: string) => boolean
|
||
|
>c : C
|
||
|
>hasOwnProperty : (v: string) => boolean
|
||
|
|
||
|
var o: Object = c;
|
||
|
>o : Object
|
||
|
>Object : Object
|
||
|
>c : C
|
||
|
|
||
|
var o2: {} = c;
|
||
|
>o2 : {}
|
||
|
>c : C
|
||
|
|