TypeScript/tests/baselines/reference/generatorTypeCheck47.errors.txt

8 lines
498 B
Plaintext
Raw Normal View History

2015-05-05 01:15:55 +02:00
tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck47.ts(2,9): error TS7025: Generator implicitly has type 'IterableIterator<any>' because it does not yield any values. Consider supplying a return type.
==== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck47.ts (1 errors) ====
function* g() { }
~
!!! error TS7025: Generator implicitly has type 'IterableIterator<any>' because it does not yield any values. Consider supplying a return type.