mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-22 19:21:47 +00:00
Handle numeric separators in integer literals while tokenizing
This commit is contained in:
20
tests/parser/numeric-separators.ts.fixture.ts
Normal file
20
tests/parser/numeric-separators.ts.fixture.ts
Normal file
@ -0,0 +1,20 @@
|
||||
111111;
|
||||
21;
|
||||
41610;
|
||||
2302755;
|
||||
111111;
|
||||
111111;
|
||||
21;
|
||||
21;
|
||||
41610;
|
||||
41610;
|
||||
2302755;
|
||||
2302755;
|
||||
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:8:8
|
||||
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:9:3
|
||||
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:11:10
|
||||
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:12:5
|
||||
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:14:10
|
||||
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:15:5
|
||||
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:17:10
|
||||
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:18:5
|
Reference in New Issue
Block a user