mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
428 B
TypeScript
13 lines
428 B
TypeScript
//// [tests/cases/compiler/evalAfter0.ts] ////
|
|
|
|
//// [evalAfter0.ts]
|
|
(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)
|
|
|
|
//// [evalAfter0.js]
|
|
"use strict";
|
|
(0, eval)("10"); // fine: special case for eval
|
|
(0, eva)("10"); // error: no side effect left of comma (suspect of missing method name or something)
|