mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
426 B
TypeScript
16 lines
426 B
TypeScript
//// [tests/cases/compiler/constDeclarations-ambient-errors.ts] ////
|
|
|
|
//// [constDeclarations-ambient-errors.ts]
|
|
// 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 namespace M {
|
|
const c6 = 0;
|
|
const c7: number = 7;
|
|
}
|
|
|
|
//// [constDeclarations-ambient-errors.js]
|
|
"use strict";
|