mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
//// [tests/cases/compiler/bigIntWithTargetES2016.ts] ////
|
|
|
|
//// [bigIntWithTargetES2016.ts]
|
|
BigInt(1) ** BigInt(1); // should not error
|
|
|
|
let num = BigInt(2);
|
|
num **= BigInt(2); // should not error
|
|
|
|
|
|
//// [bigIntWithTargetES2016.js]
|
|
"use strict";
|
|
BigInt(1) ** BigInt(1); // should not error
|
|
let num = BigInt(2);
|
|
num **= BigInt(2); // should not error
|