18 lines
230 B
TypeScript
18 lines
230 B
TypeScript
//// [symbolProperty9.ts]
|
|
class C {
|
|
[Symbol.iterator]: { x; y };
|
|
}
|
|
interface I {
|
|
[Symbol.iterator]: { x };
|
|
}
|
|
|
|
var i: I;
|
|
i = new C;
|
|
var c: C = i;
|
|
|
|
//// [symbolProperty9.js]
|
|
class C {
|
|
}
|
|
var i;
|
|
i = new C;
|
|
var c = i;
|