12 lines
189 B
TypeScript
12 lines
189 B
TypeScript
|
// @target: ES6
|
||
|
|
||
|
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]());
|