TypeScript/tests/baselines/reference/protoAsIndexInIndexExpression.types

41 lines
1.5 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/protoAsIndexInIndexExpression_1.ts ===
///<reference path='protoAsIndexInIndexExpression_0.ts'/>
var EntityPrototype = undefined;
2015-04-13 23:01:57 +02:00
>EntityPrototype : any, Symbol(EntityPrototype, Decl(protoAsIndexInIndexExpression_1.ts, 1, 3))
>undefined : undefined, Symbol(undefined)
2014-08-15 23:33:16 +02:00
var WorkspacePrototype = {
2015-04-13 23:01:57 +02:00
>WorkspacePrototype : { serialize: () => any; }, Symbol(WorkspacePrototype, Decl(protoAsIndexInIndexExpression_1.ts, 2, 3))
2014-08-22 03:39:46 +02:00
>{ serialize: function (): any { }} : { serialize: () => any; }
2014-08-15 23:33:16 +02:00
serialize: function (): any {
2015-04-13 23:01:57 +02:00
>serialize : () => any, Symbol(serialize, Decl(protoAsIndexInIndexExpression_1.ts, 2, 26))
2014-08-22 03:39:46 +02:00
>function (): any { } : () => any
2014-08-15 23:33:16 +02:00
}
};
WorkspacePrototype['__proto__'] = EntityPrototype;
>WorkspacePrototype['__proto__'] = EntityPrototype : any
>WorkspacePrototype['__proto__'] : any
2015-04-13 23:01:57 +02:00
>WorkspacePrototype : { serialize: () => any; }, Symbol(WorkspacePrototype, Decl(protoAsIndexInIndexExpression_1.ts, 2, 3))
2015-04-13 21:36:11 +02:00
>'__proto__' : string
2015-04-13 23:01:57 +02:00
>EntityPrototype : any, Symbol(EntityPrototype, Decl(protoAsIndexInIndexExpression_1.ts, 1, 3))
2014-08-15 23:33:16 +02:00
var o = {
2015-04-13 23:01:57 +02:00
>o : { "__proto__": number; }, Symbol(o, Decl(protoAsIndexInIndexExpression_1.ts, 8, 3))
>{ "__proto__": 0} : { "__proto__": number; }
2014-08-15 23:33:16 +02:00
"__proto__": 0
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
};
class C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(protoAsIndexInIndexExpression_1.ts, 10, 2))
2014-08-15 23:33:16 +02:00
"__proto__" = 0;
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
}
=== tests/cases/compiler/protoAsIndexInIndexExpression_0.ts ===
export var x;
2015-04-13 23:01:57 +02:00
>x : any, Symbol(x, Decl(protoAsIndexInIndexExpression_0.ts, 0, 10))
2014-08-15 23:33:16 +02:00