Skip to content

[DNM] See If Diagnosing Non-Prima Fascie Nominal Extensions Breaks Stuff #26967

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

Closed
wants to merge 1 commit into from

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Aug 30, 2019

⚠️ Do Not Merge This ⚠️

The AST has two separate things you can reach for when asking the question "which type am I extending here?". The first question is "give me the nominal type decl that I'm extending", which will succeed if type resolution is able to pick out a nominal type and only a nominal type. The second question is "which capital-T Type am I extending" which will go through semantic resolution and may succeed in cases where the previous query failed - see also rdar://54799560

I'm going to measure if restricting this has impact on the source compat suite.

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 30, 2019

@swift-ci please test source compatibility

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 31, 2019

✨ Fantastic ✨

@CodaFi CodaFi closed this Aug 31, 2019
@CodaFi CodaFi deleted the a-canary-in-name-only branch August 31, 2019 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant