16 lines
335 B
TypeScript
16 lines
335 B
TypeScript
//// [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 ;
|