Files
tsgo/testdata/baselines/reference/submodule/conformance/binaryIntegerLiteralError.js

27 lines
459 B
TypeScript

//// [tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteralError.ts] ////
//// [binaryIntegerLiteralError.ts]
// error
var bin1 = 0B1102110;
var bin1 = 0b11023410;
var obj1 = {
0b11010: "hi",
26: "Hello",
"26": "world",
};
//// [binaryIntegerLiteralError.js]
"use strict";
// error
var bin1 = 0B110;
2110;
var bin1 = 0b110;
23410;
var obj1 = {
0b11010: "hi",
26: "Hello",
"26": "world",
};