TypeScript/tests/cases/compiler/constDeclarations-scopes2.ts

16 lines
196 B
TypeScript
Raw Normal View History

2014-10-15 02:37:46 +02:00
// @target: ES6
// global
const c = "string";
var n: number;
var b: boolean;
// for scope
for (const c = 0; c < 10; n = c ) {
// for block
const c = false;
b = c;
}