20 lines
259 B
JavaScript
20 lines
259 B
JavaScript
|
//// [symbolProperty11.ts]
|
||
|
class C { }
|
||
|
interface I {
|
||
|
[Symbol.iterator]?: { x };
|
||
|
}
|
||
|
|
||
|
var i: I;
|
||
|
i = new C;
|
||
|
var c: C = i;
|
||
|
|
||
|
//// [symbolProperty11.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
return C;
|
||
|
})();
|
||
|
var i;
|
||
|
i = new C;
|
||
|
var c = i;
|