* Add suggestion diagnostics for unused label and unreachable code * Always error on unused left hand side of comma
5 lines
No EOL
200 B
TypeScript
5 lines
No EOL
200 B
TypeScript
// @allowUnreachableCode: false
|
|
(0,eval)("10"); // fine: special case for eval
|
|
|
|
declare var eva;
|
|
(0,eva)("10"); // error: no side effect left of comma (suspect of missing method name or something)
|