23 lines
365 B
Text
23 lines
365 B
Text
=== tests/cases/compiler/constDeclarations2.ts ===
|
|
|
|
// No error
|
|
module M {
|
|
>M : typeof M
|
|
|
|
export const c1 = false;
|
|
>c1 : boolean
|
|
>false : boolean
|
|
|
|
export const c2: number = 23;
|
|
>c2 : number
|
|
>23 : number
|
|
|
|
export const c3 = 0, c4 :string = "", c5 = null;
|
|
>c3 : number
|
|
>0 : number
|
|
>c4 : string
|
|
>"" : string
|
|
>c5 : any
|
|
>null : null
|
|
}
|
|
|