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
I'm reopening this issue since it is broken again in Swift 3 since now @noescape is now an attribute on the type.
I'm getting this compile error: error: @noescape attribute only applies to function types
Environment: Apple Swift version 3.0 (swiftlang-800.0.33.1 clang-800.0.31) (Xcode 8 beta 2)
Environment
Xcode 7.2.1 running on an iMac 5k, 27", Late 2015 - OS X 10.11.3
Additional Detail from JIRA
md5: 3f28d2b38975f941ff255bff927e0cb6
relates to:
Issue Description:
If I define a type alias for a closure, for example:
typealias CompletionHandler = (success: Bool) -> ()
and I then use this type in a function:
func doThing(completion: CompletionHandler)
if I want to make this closure @NoEscape like so:
func doThing(@noescape completion: CompletionHandler)
I am presented with the error:
@noescape may only be applied to parameters of function type
The text was updated successfully, but these errors were encountered: