TypeScript/tests/baselines/reference/objectTypeWithNumericProperty.symbols
2015-04-15 16:44:20 -07:00

119 lines
6.4 KiB
Text

=== tests/cases/conformance/types/members/objectTypeWithNumericProperty.ts ===
// no errors here
class C {
>C : Symbol(C, Decl(objectTypeWithNumericProperty.ts, 0, 0))
1: number;
1.1: string;
}
var c: C;
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
>C : Symbol(C, Decl(objectTypeWithNumericProperty.ts, 0, 0))
var r1 = c[1];
>r1 : Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3))
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
>1 : Symbol(C.1, Decl(objectTypeWithNumericProperty.ts, 2, 9))
var r2 = c[1.1];
>r2 : Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3))
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
>1.1 : Symbol(C.1.1, Decl(objectTypeWithNumericProperty.ts, 3, 14))
var r3 = c['1'];
>r3 : Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3))
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
>'1' : Symbol(C.1, Decl(objectTypeWithNumericProperty.ts, 2, 9))
var r4 = c['1.1'];
>r4 : Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3))
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
>'1.1' : Symbol(C.1.1, Decl(objectTypeWithNumericProperty.ts, 3, 14))
interface I {
>I : Symbol(I, Decl(objectTypeWithNumericProperty.ts, 11, 18))
1: number;
1.1: string;
}
var i: I;
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
>I : Symbol(I, Decl(objectTypeWithNumericProperty.ts, 11, 18))
var r1 = i[1];
>r1 : Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3))
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
>1 : Symbol(I.1, Decl(objectTypeWithNumericProperty.ts, 13, 13))
var r2 = i[1.1];
>r2 : Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3))
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
>1.1 : Symbol(I.1.1, Decl(objectTypeWithNumericProperty.ts, 14, 14))
var r3 = i['1'];
>r3 : Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3))
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
>'1' : Symbol(I.1, Decl(objectTypeWithNumericProperty.ts, 13, 13))
var r4 = i['1.1'];
>r4 : Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3))
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
>'1.1' : Symbol(I.1.1, Decl(objectTypeWithNumericProperty.ts, 14, 14))
var a: {
>a : Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3))
1: number;
1.1: string;
}
var r1 = a[1];
>r1 : Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3))
>a : Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3))
>1 : Symbol(1, Decl(objectTypeWithNumericProperty.ts, 24, 8))
var r2 = a[1.1];
>r2 : Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3))
>a : Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3))
>1.1 : Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 25, 14))
var r3 = a['1'];
>r3 : Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3))
>a : Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3))
>'1' : Symbol(1, Decl(objectTypeWithNumericProperty.ts, 24, 8))
var r4 = a['1.1'];
>r4 : Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3))
>a : Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3))
>'1.1' : Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 25, 14))
var b = {
>b : Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3))
1: 1,
1.1: ""
}
var r1 = b[1];
>r1 : Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3))
>b : Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3))
>1 : Symbol(1, Decl(objectTypeWithNumericProperty.ts, 34, 9))
var r2 = b[1.1];
>r2 : Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3))
>b : Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3))
>1.1 : Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 35, 9))
var r3 = b['1'];
>r3 : Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3))
>b : Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3))
>'1' : Symbol(1, Decl(objectTypeWithNumericProperty.ts, 34, 9))
var r4 = b['1.1'];
>r4 : Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3))
>b : Symbol(b, Decl(objectTypeWithNumericProperty.ts, 34, 3))
>'1.1' : Symbol(1.1, Decl(objectTypeWithNumericProperty.ts, 35, 9))