17 lines
No EOL
691 B
Text
17 lines
No EOL
691 B
Text
tests/cases/conformance/es6/for-ofStatements/for-of34.ts(1,10): error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
|
|
|
|
|
==== tests/cases/conformance/es6/for-ofStatements/for-of34.ts (1 errors) ====
|
|
for (var v of new StringIterator) { }
|
|
~
|
|
!!! error TS7022: 'v' implicitly has type 'any' because it is does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
|
|
|
class StringIterator {
|
|
next() {
|
|
return v;
|
|
}
|
|
|
|
[Symbol.iterator]() {
|
|
return this;
|
|
}
|
|
} |