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

Preliminary Sema support for generic subscripts #7683

Merged
merged 10 commits into from
Feb 22, 2017

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Feb 22, 2017

This builds upon the following previous PRs:

You still can't define a generic subscript yet; parser support is still pending. The main changes here that subscript declarations are now checked using the same logic as generic functions, which means their interface type becomes a GenericFunctionType when they are in generic context.

There was some fallout in CSRanking, mangling and SILGen that this fixes; once I start testing subscripts that have their own generic parameter lists, additional fixes will likely be necessary.

Amusingly, this fixes an 18-month SourceKit radar, rdar://22086900.

@slavapestov slavapestov force-pushed the sema-generic-subscripts branch from 6f6ae93 to b9d8619 Compare February 22, 2017 07:36
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - b9d861913aae672ef275a6b7bbcac76d6be161b8
Test requested by - @slavapestov

Get ready to handle lookup of generic parameters into a DeclContext
that is a SubscriptDecl. No functional change yet, this this code
path is not reachable.
Subscripts in generic context will soon have a
GenericFunctionType, so get ready to handle that.
Subscripts in generic context will soon have a
GenericFunctionType, so get ready to handle that.
Subscripts in generic context will soon have a
GenericFunctionType, so get ready to handle that.
Subscripts in generic context will soon have a
GenericFunctionType, so get ready to handle that.
Subscripts in generic context will soon have a
GenericFunctionType, so get ready to handle that.
@slavapestov slavapestov force-pushed the sema-generic-subscripts branch from b9d8619 to 7133d92 Compare February 22, 2017 07:53
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

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.

2 participants