[SR-2053] [Regression] Using @noescape for a type aliased closure results in a compile error #44662
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 3.0
Environment
Apple Swift version 3.0 (swiftlang-800.0.33.1 clang-800.0.31) (Xcode 8 beta 2)
Additional Detail from JIRA
md5: 791693fc805f219336b93066cbd69027
is duplicated by:
relates to:
Issue Description:
Since
@noescape
is now an attribute on the type, using it with type aliased closures results in a compiler error.Code example:
Error:
{code:bgColor=#FFFFFF| borderColor=#FF0000|borderWidth=2}
error: @NoEscape attribute only applies to function types
func foo(handler: @NoEscape Handler)
^
The text was updated successfully, but these errors were encountered: