Skip to content

Fix problem with unbound type parameters as extension targets #2129

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

Merged
merged 11 commits into from
Jan 22, 2020

Conversation

jcollins-g
Copy link
Contributor

@jcollins-g jcollins-g commented Jan 15, 2020

Fixes #2113. [edited]

We didn't handle unbound type parameters as an extension target, and this highlighted a previously known bug in our handling of instantiated types.

Rationalize ElementType so that all ElementTypes can do subtype checks. We also catch up with the latest changes to analyzer and avoid use of type.name. I feel the type checking code is now easier to rationalize about and is more correct.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jan 15, 2020
@jcollins-g

This comment has been minimized.

@coveralls
Copy link

coveralls commented Jan 16, 2020

Coverage Status

Coverage decreased (-0.06%) to 93.819% when pulling ece1926 on fix-unbound-type-extension into 465f1dc on master.

@jcollins-g jcollins-g merged commit b5e341e into master Jan 22, 2020
@jcollins-g jcollins-g deleted the fix-unbound-type-extension branch April 27, 2020 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled exceptions with --link-to-remote (type 'DynamicTypeImpl' is not a subtype of type 'InterfaceType')
4 participants