TypeScript/tests/cases/compiler/constDeclarations.ts

13 lines
236 B
TypeScript
Raw Normal View History

// @target: ES6
// @declaration: true
// No error
const c1 = false;
const c2: number = 23;
const c3 = 0, c4 :string = "", c5 = null;
2014-10-15 02:37:46 +02:00
for(const c4 = 0; c4 < 9; ) { break; }
for(const c5 = 0, c6 = 0; c5 < c6; ) { break; }