23 lines
387 B
Text
23 lines
387 B
Text
=== tests/cases/compiler/dynamicModuleTypecheckError.ts ===
|
|
export var x = 1;
|
|
>x : number
|
|
>1 : number
|
|
|
|
for(var i = 0; i < 30; i++) {
|
|
>i : number
|
|
>0 : number
|
|
>i < 30 : boolean
|
|
>i : number
|
|
>30 : number
|
|
>i++ : number
|
|
>i : number
|
|
|
|
x = i * 1000; // should not be an error here
|
|
>x = i * 1000 : number
|
|
>x : number
|
|
>i * 1000 : number
|
|
>i : number
|
|
>1000 : number
|
|
|
|
}
|
|
|