Fixes #34642 but, notably, doesn't actually make the assignment into a working declaration. It just fixes the crash.
18 lines
331 B
Plaintext
18 lines
331 B
Plaintext
=== tests/cases/conformance/salsa/mixedPropertyElementAccessAssignmentDeclaration.ts ===
|
|
// Should not crash: #34642
|
|
var arr = [];
|
|
>arr : any[]
|
|
>[] : undefined[]
|
|
|
|
arr[0].prop[2] = {};
|
|
>arr[0].prop[2] = {} : {}
|
|
>arr[0].prop[2] : any
|
|
>arr[0].prop : any
|
|
>arr[0] : any
|
|
>arr : any[]
|
|
>0 : 0
|
|
>prop : any
|
|
>2 : 2
|
|
>{} : {}
|
|
|