Skip to content

Disallow package names as types #12436

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 2 commits into from
Closed

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 12, 2021

Fixes #12432
Fixes #9289

@@ -0,0 +1,4 @@
package dotty.tools.dotc.typer
Copy link
Contributor

Choose a reason for hiding this comment

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

Why put the test case in this package?

@@ -0,0 +1,4 @@
package dotty.tools.dotc.typer

class i1 ( i1 : annotation ) // error
Copy link
Contributor

@griggt griggt May 14, 2021

Choose a reason for hiding this comment

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

The bug report in #12432 is for a case class:

case class i1 ( i1 : annotation )

which still crashes with this PR.

See also #9289

@odersky
Copy link
Contributor Author

odersky commented May 24, 2021

@griggt case classes work as well now.

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.

ICE: java.lang.AssertionError: assertion failed: no member this.i1 . ==, members = Scope{.... Crash for package as type in case class parameter
2 participants