mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
17 lines
220 B
TypeScript
17 lines
220 B
TypeScript
// // test_output! {}
|
|
|
|
export default function () {
|
|
let x = new X();
|
|
[...x];
|
|
|
|
return x;
|
|
}
|
|
|
|
class X {
|
|
constructor() {}
|
|
|
|
[Symbol.iterator]() {
|
|
return { next: () => ({ value: undefined, done: true }) };
|
|
}
|
|
}
|