mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
314 B
TypeScript
16 lines
314 B
TypeScript
//// [tests/cases/conformance/es6/for-ofStatements/for-of27.ts] ////
|
|
|
|
//// [for-of27.ts]
|
|
class MyStringIterator {
|
|
[Symbol.iterator]: any;
|
|
}
|
|
|
|
for (var v of new MyStringIterator) { }
|
|
|
|
//// [for-of27.js]
|
|
"use strict";
|
|
class MyStringIterator {
|
|
}
|
|
Symbol.iterator;
|
|
for (var v of new MyStringIterator) { }
|