mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 22:56:11 +03:00
11 lines
171 B
TypeScript
11 lines
171 B
TypeScript
|
// Unary operator !
|
||
|
var b: number;
|
||
|
|
||
|
// operand before !
|
||
|
var BOOLEAN1 = b!; //expect error
|
||
|
|
||
|
// miss parentheses
|
||
|
var BOOLEAN2 = !b + b;
|
||
|
|
||
|
// miss an operand
|
||
|
var BOOLEAN3 =!;
|