Files
tsgo/testdata/baselines/reference/compiler/jsExpandoAssignmentElementAccess.symbols
dcc16d9314 Fix nil pointer in transformExpandoAssignment for element access expressions (#3723)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RyanCavanaugh <[email protected]>
2026-05-08 03:09:28 +00:00

15 lines
347 B
Plaintext

//// [tests/cases/compiler/jsExpandoAssignmentElementAccess.ts] ////
=== repro.js ===
var x = {};
>x : Symbol(x, Decl(repro.js, 0, 3))
x['if'] = 1;
>x : Symbol(x, Decl(repro.js, 0, 3))
>'if' : Symbol('if', Decl(repro.js, 0, 11))
x['else'] = 1;
>x : Symbol(x, Decl(repro.js, 0, 3))
>'else' : Symbol('else', Decl(repro.js, 1, 12))