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
ffried opened this issue
May 16, 2017
· 2 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselffeatureA feature request or implementation
because the closure (where T == ()) is actually (()) -> () instead of () -> ().
While this might even be intentional, there's no clean way of working around this without adding an extension which declares the closure as being a void closure:
However, this means I need to implement the initializer twice in the exact same way, because I can't call the default initializer from the extension (as this causes an ambiguity error):
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselffeatureA feature request or implementation
Attachment: Download
Environment
$ swift --version
Apple Swift version 4.0-dev (LLVM f175cad503, Clang 51f7aba0dc, Swift 79b6334)
Target: x86_64-apple-macosx10.9
Toolchain: 4.0-DEVELOPMENT-SNAPSHOT-2017-05-15-a
Additional Detail from JIRA
md5: 5f55ffb158612da88cda3b44161cc4d7
relates to:
Issue Description:
The following source code
gives the following output:
because the closure (where
T == ()
) is actually(()) -> ()
instead of() -> ()
.While this might even be intentional, there's no clean way of working around this without adding an extension which declares the closure as being a void closure:
However, this means I need to implement the initializer twice in the exact same way, because I can't call the default initializer from the extension (as this causes an ambiguity error):
The text was updated successfully, but these errors were encountered: