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