|
1 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(1,16): error TS1351: An identifier cannot follow a numeric literal. |
2 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(3,2): error TS1351: An identifier cannot follow a numeric literal. |
| 1 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(1,16): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 2 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(3,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
3 | 3 | tests/cases/compiler/identifierStartAfterNumericLiteral.ts(3,2): error TS2304: Cannot find name 'a'.
|
4 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(4,3): error TS1124: Digit expected. |
5 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(4,4): error TS2538: Type 'null' cannot be used as an index type. |
6 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(5,2): error TS1351: An identifier cannot follow a numeric literal. |
7 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(6,3): error TS1124: Digit expected. |
8 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(6,3): error TS2304: Cannot find name 'n'. |
9 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(7,2): error TS1351: An identifier cannot follow a numeric literal. |
10 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(7,2): error TS2304: Cannot find name 'a'. |
11 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(8,3): error TS1124: Digit expected. |
12 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(10,3): error TS1124: Digit expected. |
13 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(10,3): error TS2304: Cannot find name 'e'. |
14 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(12,3): error TS1005: ';' expected. |
15 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(13,3): error TS1351: An identifier cannot follow a numeric literal. |
16 |
| -tests/cases/compiler/identifierStartAfterNumericLiteral.ts(13,3): error TS2304: Cannot find name 'a'. |
| 4 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(4,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 5 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(4,4): error TS2304: Cannot find name 'a'. |
| 6 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(5,3): error TS1124: Digit expected. |
| 7 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(5,4): error TS2538: Type 'null' cannot be used as an index type. |
| 8 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(6,5): error TS1124: Digit expected. |
| 9 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(6,6): error TS2538: Type 'null' cannot be used as an index type. |
| 10 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(7,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 11 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(8,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 12 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(9,3): error TS1124: Digit expected. |
| 13 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(9,3): error TS2304: Cannot find name 'n'. |
| 14 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(10,5): error TS1124: Digit expected. |
| 15 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(10,5): error TS2304: Cannot find name 'n'. |
| 16 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(11,2): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 17 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(11,2): error TS2304: Cannot find name 'a'. |
| 18 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(12,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 19 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(12,4): error TS2304: Cannot find name 'a'. |
| 20 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(13,4): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 21 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(13,4): error TS2304: Cannot find name 'abc'. |
| 22 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(14,3): error TS1124: Digit expected. |
| 23 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(15,5): error TS1124: Digit expected. |
| 24 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(18,3): error TS1124: Digit expected. |
| 25 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(18,3): error TS2304: Cannot find name 'e'. |
| 26 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(19,5): error TS1124: Digit expected. |
| 27 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(19,5): error TS2304: Cannot find name 'e'. |
| 28 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(22,3): error TS1005: ';' expected. |
| 29 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(23,5): error TS1005: ';' expected. |
| 30 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(24,3): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 31 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(24,3): error TS2304: Cannot find name 'a'. |
| 32 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(25,5): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 33 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(25,5): error TS2304: Cannot find name 'a'. |
| 34 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(26,5): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 35 | +tests/cases/compiler/identifierStartAfterNumericLiteral.ts(26,5): error TS2304: Cannot find name 'abc'. |
17 | 36 |
|
18 | 37 |
|
19 |
| -==== tests/cases/compiler/identifierStartAfterNumericLiteral.ts (16 errors) ==== |
| 38 | +==== tests/cases/compiler/identifierStartAfterNumericLiteral.ts (35 errors) ==== |
20 | 39 | let valueIn = 3in[null];
|
21 |
| - ~ |
22 |
| -!!! error TS1351: An identifier cannot follow a numeric literal. |
| 40 | + ~~ |
| 41 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
23 | 42 |
|
24 | 43 | 3a[null]
|
25 | 44 | ~
|
26 |
| -!!! error TS1351: An identifier cannot follow a numeric literal. |
| 45 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
27 | 46 | ~
|
| 47 | +!!! error TS2304: Cannot find name 'a'. |
| 48 | + 123a[null] |
| 49 | + ~ |
| 50 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 51 | + ~ |
28 | 52 | !!! error TS2304: Cannot find name 'a'.
|
29 | 53 | 3e[null]
|
30 | 54 |
|
31 | 55 | !!! error TS1124: Digit expected.
|
32 | 56 | ~~~~
|
| 57 | +!!! error TS2538: Type 'null' cannot be used as an index type. |
| 58 | + 123e[null] |
| 59 | + |
| 60 | +!!! error TS1124: Digit expected. |
| 61 | + ~~~~ |
33 | 62 | !!! error TS2538: Type 'null' cannot be used as an index type.
|
34 | 63 | 3in[null]
|
35 |
| - ~ |
36 |
| -!!! error TS1351: An identifier cannot follow a numeric literal. |
| 64 | + ~~ |
| 65 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 66 | + 123in[null] |
| 67 | + ~~ |
| 68 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
37 | 69 | 3en[null]
|
38 | 70 |
|
39 | 71 | !!! error TS1124: Digit expected.
|
40 | 72 | ~
|
| 73 | +!!! error TS2304: Cannot find name 'n'. |
| 74 | + 123en[null] |
| 75 | + |
| 76 | +!!! error TS1124: Digit expected. |
| 77 | + ~ |
41 | 78 | !!! error TS2304: Cannot find name 'n'.
|
42 | 79 | 1a
|
43 | 80 | ~
|
44 |
| -!!! error TS1351: An identifier cannot follow a numeric literal. |
| 81 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
45 | 82 | ~
|
46 | 83 | !!! error TS2304: Cannot find name 'a'.
|
| 84 | + 123a |
| 85 | + ~ |
| 86 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 87 | + ~ |
| 88 | +!!! error TS2304: Cannot find name 'a'. |
| 89 | + 123abc |
| 90 | + ~~~ |
| 91 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 92 | + ~~~ |
| 93 | +!!! error TS2304: Cannot find name 'abc'. |
47 | 94 | 1e
|
48 | 95 |
|
| 96 | +!!! error TS1124: Digit expected. |
| 97 | + 123e |
| 98 | + |
49 | 99 | !!! error TS1124: Digit expected.
|
50 | 100 | 1e9
|
| 101 | + 123e9 |
51 | 102 | 1ee
|
52 | 103 |
|
53 | 104 | !!! error TS1124: Digit expected.
|
54 | 105 | ~
|
| 106 | +!!! error TS2304: Cannot find name 'e'. |
| 107 | + 123ee |
| 108 | + |
| 109 | +!!! error TS1124: Digit expected. |
| 110 | + ~ |
55 | 111 | !!! error TS2304: Cannot find name 'e'.
|
56 | 112 | 1n
|
| 113 | + 123n |
57 | 114 | 2n2
|
58 | 115 | ~
|
| 116 | +!!! error TS1005: ';' expected. |
| 117 | + 123n2 |
| 118 | + ~ |
59 | 119 | !!! error TS1005: ';' expected.
|
60 | 120 | 2na
|
61 | 121 | ~
|
62 |
| -!!! error TS1351: An identifier cannot follow a numeric literal. |
| 122 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
63 | 123 | ~
|
64 | 124 | !!! error TS2304: Cannot find name 'a'.
|
| 125 | + 123na |
| 126 | + ~ |
| 127 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 128 | + ~ |
| 129 | +!!! error TS2304: Cannot find name 'a'. |
| 130 | + 123nabc |
| 131 | + ~~~ |
| 132 | +!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 133 | + ~~~ |
| 134 | +!!! error TS2304: Cannot find name 'abc'. |
65 | 135 |
|
0 commit comments