mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
98 lines
7.3 KiB
Plaintext
98 lines
7.3 KiB
Plaintext
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(9,12): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(9,25): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(10,12): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(10,25): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(11,12): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(11,25): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(13,12): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(13,17): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(14,12): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(14,17): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(15,12): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(15,17): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(17,12): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(17,25): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(18,12): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(18,25): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(19,12): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(19,25): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(21,12): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(21,20): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(22,12): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(22,18): error TS18050: The value 'undefined' cannot be used here.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(23,12): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts(23,18): error TS18050: The value 'undefined' cannot be used here.
|
|
|
|
|
|
==== exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts (24 errors) ====
|
|
// If one operand is the undefined or undefined value, it is treated as having the type of the
|
|
// other operand.
|
|
|
|
declare var a: boolean;
|
|
declare var b: string;
|
|
declare var c: Object;
|
|
|
|
// operator **
|
|
var r1a1 = undefined ** a;
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
~
|
|
!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
var r1a2 = undefined ** b;
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
~
|
|
!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
var r1a3 = undefined ** c;
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
~
|
|
!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
|
|
var r1b1 = a ** undefined;
|
|
~
|
|
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
var r1b2 = b ** undefined;
|
|
~
|
|
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
var r1b3 = c ** undefined;
|
|
~
|
|
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
|
|
var r1c1 = undefined ** true;
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
~~~~
|
|
!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
var r1c2 = undefined ** '';
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
~~
|
|
!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
var r1c3 = undefined ** {};
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
~~
|
|
!!! error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
|
|
var r1d1 = true ** undefined;
|
|
~~~~
|
|
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
var r1d2 = '' ** undefined;
|
|
~~
|
|
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
var r1d3 = {} ** undefined;
|
|
~~
|
|
!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here. |