Skip to content

Fix #3467: Don't pre-check kinds in TypeAssigner #3567

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 1 commit into from
Nov 27, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Nov 27, 2017

In the existing tests we only need to pre-check kinds in Typer in order
to avoid self-applications that can lead to crashes. By avoiding them in
TypeAssigner we also avoid the error exhibited by i3467 in the strawman
collections.

This change required some changes in the tests because errors now get reported
at different times.

In the existing tests we only need to pre-check kinds in Typer in order
to avoid self-applications that can lead to crashes. By avoiding them in
TypeAssigner we also avoid the error exhibited by i3467 in the strawman
collections.

This change required some changes in the tests because errors now get reported
at different times.
@odersky odersky requested a review from allanrenucci November 27, 2017 17:28
@@ -0,0 +1,16 @@
object Test {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file and kinds2.scala are almost identitical, the other one could be removed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kinds2.scala tests another error. So I think we should keep it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to not test f[C] in this file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe because the error is not reported with this file:

This change required some changes in the tests because errors now get reported
at different times.

@odersky odersky merged commit c352fde into scala:master Nov 27, 2017
@allanrenucci allanrenucci deleted the fix-#3467 branch December 14, 2017 19:19
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.

3 participants