mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
429 B
Plaintext
15 lines
429 B
Plaintext
//// [tests/cases/compiler/expressionsForbiddenInParameterInitializers.ts] ////
|
|
|
|
=== bar.ts ===
|
|
export async function foo({ foo = await import("./bar") }) {
|
|
>foo : Symbol(foo, Decl(bar.ts, 0, 0))
|
|
>foo : Symbol(foo, Decl(bar.ts, 0, 27))
|
|
>"./bar" : Symbol("./bar", Decl(bar.ts, 0, 0))
|
|
}
|
|
|
|
export function* foo2({ foo = yield "a" }) {
|
|
>foo2 : Symbol(foo2, Decl(bar.ts, 1, 1))
|
|
>foo : Symbol(foo, Decl(bar.ts, 3, 23))
|
|
}
|
|
|