We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 8 (8A218a) Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38) Build Target iOS SDK 10
md5: 9f37a359be81b189770a77e2934b7c3e
duplicates:
Issue Description:
This will not work in Swift 3:
typealias ViewClosure = () -> UIView class ViewController: UIViewController { func viewMaker(closure: @autoclosure ViewClosure) { self.view = closure() } }
Error:
@autoclosure ViewClosure: @autoclosure attribute only applies to function types
The text was updated successfully, but these errors were encountered:
Comment by Jonathan (JIRA)
Any progress on this? It seems like something that should happen based on the way typealias's are defined.
Sorry, something went wrong.
I can't believe this is still unresolved. I filed SR-3824 on February 2017...
PR: #22015
jon889 (JIRA User) @NachoSoto Fixed on master.
Comment by Slipp Douglas Thompson (JIRA)
For clarity, looks like this bug is present in Swift 5.0/5.0.1 and fixed as of Swift 5.1.
theblixguy
No branches or pull requests
Environment
Xcode 8 (8A218a)
Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38)
Build Target iOS SDK 10
Additional Detail from JIRA
md5: 9f37a359be81b189770a77e2934b7c3e
duplicates:
Issue Description:
This will not work in Swift 3:
Error:
The text was updated successfully, but these errors were encountered: