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