mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
While building a closure to inject `checkExpect` code, clone member references associated with assignment. Re-using AST nodes is generally invalid. This is visible with multi-statement closure inference enabled, because the body is type-checked together with enclosing context and both elements end up sharing `DeclRefExpr` and `MemberRefExpr`s.
11 KiB
11 KiB