41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
=== tests/cases/compiler/protoAsIndexInIndexExpression_1.ts ===
|
|
///<reference path='protoAsIndexInIndexExpression_0.ts'/>
|
|
var EntityPrototype = undefined;
|
|
>EntityPrototype : any, Symbol(EntityPrototype, Decl(protoAsIndexInIndexExpression_1.ts, 1, 3))
|
|
>undefined : undefined, Symbol(undefined)
|
|
|
|
var WorkspacePrototype = {
|
|
>WorkspacePrototype : { serialize: () => any; }, Symbol(WorkspacePrototype, Decl(protoAsIndexInIndexExpression_1.ts, 2, 3))
|
|
>{ serialize: function (): any { }} : { serialize: () => any; }
|
|
|
|
serialize: function (): any {
|
|
>serialize : () => any, Symbol(serialize, Decl(protoAsIndexInIndexExpression_1.ts, 2, 26))
|
|
>function (): any { } : () => any
|
|
}
|
|
};
|
|
WorkspacePrototype['__proto__'] = EntityPrototype;
|
|
>WorkspacePrototype['__proto__'] = EntityPrototype : any
|
|
>WorkspacePrototype['__proto__'] : any
|
|
>WorkspacePrototype : { serialize: () => any; }, Symbol(WorkspacePrototype, Decl(protoAsIndexInIndexExpression_1.ts, 2, 3))
|
|
>'__proto__' : string
|
|
>EntityPrototype : any, Symbol(EntityPrototype, Decl(protoAsIndexInIndexExpression_1.ts, 1, 3))
|
|
|
|
var o = {
|
|
>o : { "__proto__": number; }, Symbol(o, Decl(protoAsIndexInIndexExpression_1.ts, 8, 3))
|
|
>{ "__proto__": 0} : { "__proto__": number; }
|
|
|
|
"__proto__": 0
|
|
>0 : number
|
|
|
|
};
|
|
class C {
|
|
>C : C, Symbol(C, Decl(protoAsIndexInIndexExpression_1.ts, 10, 2))
|
|
|
|
"__proto__" = 0;
|
|
>0 : number
|
|
}
|
|
=== tests/cases/compiler/protoAsIndexInIndexExpression_0.ts ===
|
|
export var x;
|
|
>x : any, Symbol(x, Decl(protoAsIndexInIndexExpression_0.ts, 0, 10))
|
|
|