23 lines
377 B
TypeScript
23 lines
377 B
TypeScript
//// [localClassesInLoop_ES6.ts]
|
|
|
|
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]());
|
|
|
|
//// [localClassesInLoop_ES6.js]
|
|
"use strict";
|
|
var data = [];
|
|
for (let x = 0; x < 2; ++x) {
|
|
class C {
|
|
}
|
|
data.push(() => C);
|
|
}
|
|
use(data[0]() === data[1]());
|