TypeScript/tests/baselines/reference/constDeclarations2.types

24 lines
651 B
Plaintext
Raw Normal View History

=== tests/cases/compiler/constDeclarations2.ts ===
// No error
module M {
2015-04-13 23:01:57 +02:00
>M : typeof M, Symbol(M, Decl(constDeclarations2.ts, 0, 0))
export const c1 = false;
2015-04-13 23:01:57 +02:00
>c1 : boolean, Symbol(c1, Decl(constDeclarations2.ts, 3, 16))
2015-04-13 21:36:11 +02:00
>false : boolean
export const c2: number = 23;
2015-04-13 23:01:57 +02:00
>c2 : number, Symbol(c2, Decl(constDeclarations2.ts, 4, 16))
2015-04-13 21:36:11 +02:00
>23 : number
export const c3 = 0, c4 :string = "", c5 = null;
2015-04-13 23:01:57 +02:00
>c3 : number, Symbol(c3, Decl(constDeclarations2.ts, 5, 16))
2015-04-13 21:36:11 +02:00
>0 : number
2015-04-13 23:01:57 +02:00
>c4 : string, Symbol(c4, Decl(constDeclarations2.ts, 5, 24))
2015-04-13 21:36:11 +02:00
>"" : string
2015-04-13 23:01:57 +02:00
>c5 : any, Symbol(c5, Decl(constDeclarations2.ts, 5, 41))
2015-04-13 21:36:11 +02:00
>null : null
}