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-9754] "nil requires a contextual type" #52183

Closed
swift-ci opened this issue Jan 25, 2019 · 5 comments
Closed

[SR-9754] "nil requires a contextual type" #52183

swift-ci opened this issue Jan 25, 2019 · 5 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression swift 5.0 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9754
Radar rdar://problem/47550715
Original Reporter Jessy (JIRA User)
Type Bug
Status Resolved
Resolution Cannot Reproduce

Attachment: Download

Environment

Swift 5 / Xcode 10.2 beta

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.0Regression, TypeChecker
Assignee Jessy (JIRA)
Priority Medium

md5: 10f33275ccf292b14b8817721479ab56

Issue Description:

Swift seems to be forcing me to replace some `nil`s with `.none`s today, whereas Swift 4.2 is fine with `nil`.

@belkadan
Copy link
Contributor

Thanks for filing!

@xedin
Copy link
Member

xedin commented Jan 25, 2019

This is very interesting, for some reason conversion from `((Verify) -> Void)?` to `Process<Verify>?` fails.

@LucianoPAlmeida
Copy link
Collaborator

Just checked the sample on Xcode 11.4, seems to be fixed already so I think this could be resolved cc @xedin

@xedin
Copy link
Member

xedin commented Mar 15, 2020

Thank you, @LucianoPAlmeida! Looks like this indeed has been fixed in Xcode 11.4. Jessy (JIRA User) Could you please verify?

@swift-ci
Copy link
Collaborator Author

Comment by Jessy Catterwaul (JIRA)

Yes. All good now

@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 regression swift 5.0 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

5 participants