[SR-3417] #if in closure doesn't allow closure to be a single expression closure #46005
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
parser
Area → compiler: The legacy C++ parser
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 9e8c4f62db5afe1e6df957fc5c116a33
Issue Description:
The following code feels like it should work, but doesn't
Instead, you need to include an explicit return as the closure can no longer be a single expression closure.
The text was updated successfully, but these errors were encountered: