assemblyscript/tests/parser/numeric-separators.ts

19 lines
266 B
TypeScript

11_11_11;
0b01_01_01;
0o12_12_12;
0x23_23_23;
// error cases that should still continue parsing:
11_11_11_; // 6188
11__11_11; // 6189
0b01_01_01_; // 6188
0b01__01_01; // 6189
0o12_12_12_; // 6188
0o12__12_12; // 6189
0x23_23_23_; // 6188
0x23__23_23; // 6189