2014-10-13 06:10:04 +02:00
|
|
|
=== tests/cases/compiler/constDeclarations.ts ===
|
|
|
|
|
|
|
|
// No error
|
|
|
|
const c1 = false;
|
|
|
|
>c1 : boolean
|
|
|
|
|
|
|
|
const c2: number = 23;
|
|
|
|
>c2 : number
|
|
|
|
|
|
|
|
const c3 = 0, c4 :string = "", c5 = null;
|
|
|
|
>c3 : number
|
|
|
|
>c4 : string
|
|
|
|
>c5 : any
|
|
|
|
|
2014-10-15 02:37:46 +02:00
|
|
|
|
|
|
|
for(const c4 = 0; c4 < 9; ) { break; }
|
|
|
|
>c4 : number
|
|
|
|
>c4 < 9 : boolean
|
|
|
|
>c4 : number
|
|
|
|
|
|
|
|
|
|
|
|
for(const c5 = 0, c6 = 0; c5 < c6; ) { break; }
|
|
|
|
>c5 : number
|
|
|
|
>c6 : number
|
|
|
|
>c5 < c6 : boolean
|
|
|
|
>c5 : number
|
|
|
|
>c6 : number
|
|
|
|
|