mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
561 B
TypeScript
29 lines
561 B
TypeScript
//// [tests/cases/compiler/constDeclarations2.ts] ////
|
|
|
|
//// [constDeclarations2.ts]
|
|
// No error
|
|
namespace M {
|
|
export const c1 = false;
|
|
export const c2: number = 23;
|
|
export const c3 = 0, c4 :string = "", c5 = null;
|
|
}
|
|
|
|
|
|
//// [constDeclarations2.js]
|
|
"use strict";
|
|
// No error
|
|
var M;
|
|
(function (M) {
|
|
M.c1 = false;
|
|
M.c2 = 23;
|
|
M.c3 = 0, M.c4 = "", M.c5 = null;
|
|
})(M || (M = {}));
|
|
|
|
|
|
//// [constDeclarations2.d.ts]
|
|
declare namespace M {
|
|
const c1 = false;
|
|
const c2: number;
|
|
const c3 = 0, c4: string, c5: any;
|
|
}
|