10 lines
337 B
Plaintext
10 lines
337 B
Plaintext
=== tests/cases/conformance/generators/generatorReturnTypeFallback.5.ts ===
|
|
// Allow generators to fallback to IterableIterator if they do not need a type for the sent value while in strictNullChecks mode.
|
|
function* f(): IterableIterator<number> {
|
|
>f : () => IterableIterator<number>
|
|
|
|
yield 1;
|
|
>yield 1 : undefined
|
|
>1 : 1
|
|
}
|