TypeScript/tests/baselines/reference/constDeclarations2.types
2015-04-13 14:29:37 -07:00

24 lines
651 B
Plaintext

=== tests/cases/compiler/constDeclarations2.ts ===
// No error
module M {
>M : typeof M, Symbol(M, Decl(constDeclarations2.ts, 0, 0))
export const c1 = false;
>c1 : boolean, Symbol(c1, Decl(constDeclarations2.ts, 3, 16))
>false : boolean
export const c2: number = 23;
>c2 : number, Symbol(c2, Decl(constDeclarations2.ts, 4, 16))
>23 : number
export const c3 = 0, c4 :string = "", c5 = null;
>c3 : number, Symbol(c3, Decl(constDeclarations2.ts, 5, 16))
>0 : number
>c4 : string, Symbol(c4, Decl(constDeclarations2.ts, 5, 24))
>"" : string
>c5 : any, Symbol(c5, Decl(constDeclarations2.ts, 5, 41))
>null : null
}