New issue
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
[SR-2266] Typealiased function-types are @escaping by default #44873
Comments
I'm getting "use of undeclared type Index", which is better but not much. |
Also, a couple more points:
|
cc @milseman |
After more investigation:
// Works (but my Xcode displays an error because of aforementioned labels issue)
protocol MyProto {
associatedtype Blob
typealias Executable = (_ argOne: Blob, _ argTwo: Bool)->()
func execute(_ block: Executable)
}
protocol MyProto {
typealias Executable = ()->()
func execute(_ block: Executable)
}
struct TestStruct : MyProto {
// FIXME: SWIFT: We should inherit this from the protocol
typealias Executable = ()->()
func execute(_ block: Executable) {
block()
}
private func doThing() {
print("Doing a thing...")
}
mutating func execute_doThing() {
execute {
doThing()
}
}
} Produces:
|
Environment
Swift 6f743db
Additional Detail from JIRA
md5: 312a42469bcc5f7c24a5b6f50ae236fd
duplicates:
Issue Description:
The following code does not seem to be parseable:
The text was updated successfully, but these errors were encountered: