mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
723 B
Plaintext
19 lines
723 B
Plaintext
//// [tests/cases/compiler/forAwaitForUnion.ts] ////
|
|
|
|
=== forAwaitForUnion.ts ===
|
|
async function f<T>(source: Iterable<T> | AsyncIterable<T>) {
|
|
>f : Symbol(f, Decl(forAwaitForUnion.ts, 0, 0))
|
|
>T : Symbol(T, Decl(forAwaitForUnion.ts, 0, 17))
|
|
>source : Symbol(source, Decl(forAwaitForUnion.ts, 0, 20))
|
|
>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --))
|
|
>T : Symbol(T, Decl(forAwaitForUnion.ts, 0, 17))
|
|
>AsyncIterable : Symbol(AsyncIterable, Decl(lib.es2018.asynciterable.d.ts, --, --))
|
|
>T : Symbol(T, Decl(forAwaitForUnion.ts, 0, 17))
|
|
|
|
for await (const x of source) {
|
|
>x : Symbol(x, Decl(forAwaitForUnion.ts, 1, 20))
|
|
>source : Symbol(source, Decl(forAwaitForUnion.ts, 0, 20))
|
|
}
|
|
}
|
|
|