TypeScript/tests/baselines/reference/for-of34.errors.txt

20 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-06-03 03:13:39 +02:00
tests/cases/conformance/es6/for-ofStatements/for-of34.ts(1,10): error TS7022: 'v' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
2015-05-03 01:37:45 +02:00
tests/cases/conformance/es6/for-ofStatements/for-of34.ts(4,5): error TS7023: 'next' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
2015-05-03 01:37:45 +02:00
==== tests/cases/conformance/es6/for-ofStatements/for-of34.ts (2 errors) ====
for (var v of new StringIterator) { }
~
2015-06-03 03:13:39 +02:00
!!! error TS7022: 'v' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
class StringIterator {
next() {
2015-05-03 01:37:45 +02:00
~~~~
!!! error TS7023: 'next' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
return v;
}
[Symbol.iterator]() {
return this;
}
}