Files
tsgo/testdata/baselines/reference/compiler/awaitObjectLiteral.symbols
ce98adbc09 Fix reparseTopLevelAwait diagnostic slicing bug (#3937)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-05-18 05:05:08 +00:00

15 lines
393 B
Plaintext

//// [tests/cases/compiler/awaitObjectLiteral.ts] ////
=== fileA.ts ===
export {}
const foo = await { bar: 42 }
>foo : Symbol(foo, Decl(fileA.ts, 1, 5))
>bar : Symbol(bar, Decl(fileA.ts, 1, 19))
=== fileB.ts ===
export const baz = await { x: 1, y: "hello" }
>baz : Symbol(baz, Decl(fileB.ts, 0, 12))
>x : Symbol(x, Decl(fileB.ts, 0, 26))
>y : Symbol(y, Decl(fileB.ts, 0, 32))