TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts

6 lines
No EOL
139 B
TypeScript

//@target: ES5
//@lib: ES6
const strSet: Set<string> = new Set()
strSet.add('Hello')
strSet.add('World')
for (const str of strSet) { }