15 lines
537 B
Text
15 lines
537 B
Text
=== tests/cases/compiler/dynamicModuleTypecheckError.ts ===
|
|
export var x = 1;
|
|
>x : Symbol(x, Decl(dynamicModuleTypecheckError.ts, 0, 10))
|
|
|
|
for(var i = 0; i < 30; i++) {
|
|
>i : Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7))
|
|
>i : Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7))
|
|
>i : Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7))
|
|
|
|
x = i * 1000; // should not be an error here
|
|
>x : Symbol(x, Decl(dynamicModuleTypecheckError.ts, 0, 10))
|
|
>i : Symbol(i, Decl(dynamicModuleTypecheckError.ts, 2, 7))
|
|
|
|
}
|
|
|