mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In addition to brace statements (previously handled), several other statements allow a trailing closure (return, yield, throw). Also fix the handling of statements nested within expressions for closures - both single-expression bodies and brace statements. This also fixes a particular regression caused by single-expression function bodies where we would fail to expand to a trailing closure when a function body only contained a single expression. rdar://50227500
83 KiB
83 KiB