Skip to content
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-14075] Compiler crash when implementing async Obj-C delegate methods #56464

Closed
jshier opened this issue Jan 21, 2021 · 2 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself concurrency Feature: umbrella label for concurrency language features

Comments

@jshier
Copy link
Contributor

jshier commented Jan 21, 2021

Previous ID SR-14075
Radar rdar://problem/73460924
Original Reporter @jshier
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 12.3, swift-DEVELOPMENT-SNAPSHOT-2021-01-19-a, 2020 iMac i9

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, Concurrency
Assignee None
Priority Medium

md5: 79f687df9a7c6753fe91d8a65d2f7ee7

Issue Description:

Attempting to implement URLSessionTaskDelegate with the following code produces the attached crash:

actor class SessionDelegate: NSObject {
    
}

extension SessionDelegate: URLSessionTaskDelegate {
    func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
        (.performDefaultHandling, nil)
    }
}
@typesanitizer
Copy link

@swift-ci create

@DougGregor
Copy link
Member

Fixed by #35661 thanks!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

No branches or pull requests

3 participants