mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
compoundExponentiationAssignmentLHSCanBeAssigned1.ts(11,8): error TS18050: The value 'null' cannot be used here.
|
|
compoundExponentiationAssignmentLHSCanBeAssigned1.ts(12,8): error TS18050: The value 'undefined' cannot be used here.
|
|
compoundExponentiationAssignmentLHSCanBeAssigned1.ts(18,8): error TS18050: The value 'null' cannot be used here.
|
|
compoundExponentiationAssignmentLHSCanBeAssigned1.ts(19,8): error TS18050: The value 'undefined' cannot be used here.
|
|
compoundExponentiationAssignmentLHSCanBeAssigned1.ts(25,8): error TS18050: The value 'null' cannot be used here.
|
|
compoundExponentiationAssignmentLHSCanBeAssigned1.ts(26,8): error TS18050: The value 'undefined' cannot be used here.
|
|
|
|
|
|
==== compoundExponentiationAssignmentLHSCanBeAssigned1.ts (6 errors) ====
|
|
enum E { a, b, c }
|
|
|
|
declare var a: any;
|
|
declare var b: number;
|
|
declare var c: E;
|
|
|
|
declare var x1: any;
|
|
x1 **= a;
|
|
x1 **= b;
|
|
x1 **= c;
|
|
x1 **= null;
|
|
~~~~
|
|
!!! error TS18050: The value 'null' cannot be used here.
|
|
x1 **= undefined;
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
|
|
declare var x2: number;
|
|
x2 **= a;
|
|
x2 **= b;
|
|
x2 **= c;
|
|
x2 **= null;
|
|
~~~~
|
|
!!! error TS18050: The value 'null' cannot be used here.
|
|
x2 **= undefined;
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here.
|
|
|
|
declare var x3: E;
|
|
x3 **= a;
|
|
x3 **= b;
|
|
x3 **= c;
|
|
x3 **= null;
|
|
~~~~
|
|
!!! error TS18050: The value 'null' cannot be used here.
|
|
x3 **= undefined;
|
|
~~~~~~~~~
|
|
!!! error TS18050: The value 'undefined' cannot be used here. |