mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a few related issues involving the interaction with single-expression closures: * A single-expression closure can have a "return" in it; in such cases, disable the function-builder transform. * Have the function builder constraint generator look through the "return" statement in a single-expression closure the same way as solution application does Fixes rdar://problem/59045763, where we rejected some well-formed code involving a single-expression closure with a "return" keyword.
355 KiB
355 KiB