mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
15 lines
290 B
TypeScript
15 lines
290 B
TypeScript
// Unary operator delete
|
|
var ANY;
|
|
|
|
// operand before delete operator
|
|
var BOOLEAN1 = ANY delete ; //expect error
|
|
|
|
// miss an operand
|
|
var BOOLEAN2 = delete ;
|
|
|
|
// delete global variable s
|
|
class testADelx {
|
|
constructor(public s: () => {}) {
|
|
delete s; //expect error
|
|
}
|
|
} |