17 lines
335 B
JavaScript
17 lines
335 B
JavaScript
|
//// [voidOperatorInvalidOperations.ts]
|
||
|
// Unary operator void
|
||
|
|
||
|
// operand before void
|
||
|
var ANY = ANY void ; //expect error
|
||
|
|
||
|
// miss an operand
|
||
|
var ANY1 = void ;
|
||
|
|
||
|
//// [voidOperatorInvalidOperations.js]
|
||
|
// Unary operator void
|
||
|
// operand before void
|
||
|
var ANY = ANY;
|
||
|
void ; //expect error
|
||
|
// miss an operand
|
||
|
var ANY1 = void ;
|