You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oof. I'm not sure we should even be allowing trailing closures on subscripts in the first place, but it's certainly a bug to allow them in conditions when it's banned for functions and initializers.
Environment
Apple Swift version 4.0.1 (swiftlang-900.0.68 clang-900.0.38)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 1f5530fb7e498efb3b36d8985f299fab
Issue Description:
This compiles without error.
Trailing closures in statement condition should be diagnosed.
The text was updated successfully, but these errors were encountered: