blob: 698612a179716d080aa62a3d7f2a23748ff03996 [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/assignment-target-type/optionalexpression.case
// - src/assignment-target-type/invalid/parenthesized.template
/*---
description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression)
esid: sec-grouping-operator-static-semantics-assignmenttargettype
features: [optional-chaining]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ParenthesizedExpression: (Expression)
Return AssignmentTargetType of Expression.
OptionalExpression
Static Semantics AssignmentTargetType, Return invalid.
---*/
$DONOTEVALUATE();
function _() {
(x?.y) = 1;
}