Adjust to newer changes
This commit is contained in:
parent
275ed548df
commit
ca234d2b60
|
@ -1,13 +1,13 @@
|
|||
=== tests/cases/compiler/bigIntWithTargetES2016.ts ===
|
||||
BigInt(1) ** BigInt(1); // should not error
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
|
||||
let num = BigInt(2);
|
||||
>num : Symbol(num, Decl(bigIntWithTargetES2016.ts, 2, 3))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
|
||||
num **= BigInt(2); // should not error
|
||||
>num : Symbol(num, Decl(bigIntWithTargetES2016.ts, 2, 3))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(1,1): error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(4,1): error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(1,1): error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
tests/cases/compiler/bigIntWithTargetLessThanES2016.ts(4,1): error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
|
||||
|
||||
==== tests/cases/compiler/bigIntWithTargetLessThanES2016.ts (2 errors) ====
|
||||
BigInt(1) ** BigInt(1); // should error
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
!!! error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
|
||||
let foo = BigInt(2);
|
||||
foo **= BigInt(2); // should error
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2782: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
!!! error TS2791: Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
=== tests/cases/compiler/bigIntWithTargetLessThanES2016.ts ===
|
||||
BigInt(1) ** BigInt(1); // should error
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
|
||||
let foo = BigInt(2);
|
||||
>foo : Symbol(foo, Decl(bigIntWithTargetLessThanES2016.ts, 2, 3))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
|
||||
foo **= BigInt(2); // should error
|
||||
>foo : Symbol(foo, Decl(bigIntWithTargetLessThanES2016.ts, 2, 3))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.esnext.bigint.d.ts, --, --), Decl(lib.esnext.bigint.d.ts, --, --))
|
||||
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
|
||||
|
||||
|
|
Loading…
Reference in a new issue