TypeScript/tests/baselines/reference/constDeclarations.types
2014-10-14 17:37:46 -07:00

29 lines
446 B
Plaintext

=== 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
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