mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Right before generating constraints for the new system, check if there are any BindOptionalExpr in the tree which wrap DiscardAssignmentExpr, such situation corresponds to syntax like - `_? = <value>`, since it doesn't really make sense to have optional assignment to discarded LValue which can never be optional, we can remove BOE from the tree and avoid generating any of the uncessary constraints.
1004 B
1004 B