File: assignmentIndexedToPrimitives.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (41 lines) | stat: -rw-r--r-- 1,469 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
=== tests/cases/compiler/assignmentIndexedToPrimitives.ts ===
const n1: number = [0];
>n1 : Symbol(n1, Decl(assignmentIndexedToPrimitives.ts, 0, 5))

const n2: number = ["0"];
>n2 : Symbol(n2, Decl(assignmentIndexedToPrimitives.ts, 1, 5))

const n3: number = [0, "1"];
>n3 : Symbol(n3, Decl(assignmentIndexedToPrimitives.ts, 2, 5))

const n4: 0 = [0];
>n4 : Symbol(n4, Decl(assignmentIndexedToPrimitives.ts, 3, 5))

const s1: string = [0];
>s1 : Symbol(s1, Decl(assignmentIndexedToPrimitives.ts, 5, 5))

const s2: string = ["0"];
>s2 : Symbol(s2, Decl(assignmentIndexedToPrimitives.ts, 6, 5))

const s3: string = [0, "1"];
>s3 : Symbol(s3, Decl(assignmentIndexedToPrimitives.ts, 7, 5))

const s4: "01" = ["0", "1"];
>s4 : Symbol(s4, Decl(assignmentIndexedToPrimitives.ts, 8, 5))

const no1: number = { 0: 1 };
>no1 : Symbol(no1, Decl(assignmentIndexedToPrimitives.ts, 10, 5))
>0 : Symbol(0, Decl(assignmentIndexedToPrimitives.ts, 10, 21))

const so1: string = { 0: 1 };
>so1 : Symbol(so1, Decl(assignmentIndexedToPrimitives.ts, 12, 5))
>0 : Symbol(0, Decl(assignmentIndexedToPrimitives.ts, 12, 21))

const so2: string = { "0": 1 };
>so2 : Symbol(so2, Decl(assignmentIndexedToPrimitives.ts, 13, 5))
>"0" : Symbol("0", Decl(assignmentIndexedToPrimitives.ts, 13, 21))

const so3: string = { 0: "1" };
>so3 : Symbol(so3, Decl(assignmentIndexedToPrimitives.ts, 14, 5))
>0 : Symbol(0, Decl(assignmentIndexedToPrimitives.ts, 14, 21))