TypeScript/tests/cases/compiler/constDeclarations-ambient-errors.ts
2014-10-12 21:10:04 -07:00

11 lines
271 B
TypeScript

// @target: ES6
// error: no intialization expected in ambient declarations
declare const c1: boolean = true;
declare const c2: number = 0;
declare const c3 = null, c4 :string = "", c5: any = 0;
declare module M {
const c6 = 0;
const c7: number = 7;
}