15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
//// [dynamicModuleTypecheckError.ts]
|
|
export var x = 1;
|
|
|
|
for(var i = 0; i < 30; i++) {
|
|
|
|
x = i * 1000; // should not be an error here
|
|
|
|
}
|
|
|
|
|
|
//// [dynamicModuleTypecheckError.js]
|
|
exports.x = 1;
|
|
for (var i = 0; i < 30; i++) {
|
|
exports.x = i * 1000; // should not be an error here
|
|
}
|