11 lines
323 B
Text
11 lines
323 B
Text
=== tests/cases/compiler/forAwaitForUnion.ts ===
|
|
async function f<T>(source: Iterable<T> | AsyncIterable<T>) {
|
|
>f : <T>(source: Iterable<T> | AsyncIterable<T>) => Promise<void>
|
|
>source : Iterable<T> | AsyncIterable<T>
|
|
|
|
for await (const x of source) {
|
|
>x : T
|
|
>source : Iterable<T> | AsyncIterable<T>
|
|
}
|
|
}
|
|
|