30 lines
1.4 KiB
Text
30 lines
1.4 KiB
Text
=== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classAppearsToHaveMembersOfObject.ts ===
|
|
class C { foo: string; }
|
|
>C : Symbol(C, Decl(classAppearsToHaveMembersOfObject.ts, 0, 0))
|
|
>foo : Symbol(foo, Decl(classAppearsToHaveMembersOfObject.ts, 0, 9))
|
|
|
|
var c: C;
|
|
>c : Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3))
|
|
>C : Symbol(C, Decl(classAppearsToHaveMembersOfObject.ts, 0, 0))
|
|
|
|
var r = c.toString();
|
|
>r : Symbol(r, Decl(classAppearsToHaveMembersOfObject.ts, 3, 3))
|
|
>c.toString : Symbol(Object.toString, Decl(lib.d.ts, 96, 26))
|
|
>c : Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3))
|
|
>toString : Symbol(Object.toString, Decl(lib.d.ts, 96, 26))
|
|
|
|
var r2 = c.hasOwnProperty('');
|
|
>r2 : Symbol(r2, Decl(classAppearsToHaveMembersOfObject.ts, 4, 3))
|
|
>c.hasOwnProperty : Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
|
>c : Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3))
|
|
>hasOwnProperty : Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
|
|
|
var o: Object = c;
|
|
>o : Symbol(o, Decl(classAppearsToHaveMembersOfObject.ts, 5, 3))
|
|
>Object : Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
|
|
>c : Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3))
|
|
|
|
var o2: {} = c;
|
|
>o2 : Symbol(o2, Decl(classAppearsToHaveMembersOfObject.ts, 6, 3))
|
|
>c : Symbol(c, Decl(classAppearsToHaveMembersOfObject.ts, 2, 3))
|
|
|