TypeScript/tests/cases/compiler/localClassesInLoop.ts

10 lines
170 B
TypeScript
Raw Normal View History

declare function use(a: any);
"use strict"
var data = [];
for (let x = 0; x < 2; ++x) {
class C { }
data.push(() => C);
}
use(data[0]() === data[1]());