Skip to content

java.lang.Error: type is not fully defined #1590

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
OlivierBlanvillain opened this issue Oct 13, 2016 · 0 comments
Closed

java.lang.Error: type is not fully defined #1590

OlivierBlanvillain opened this issue Oct 13, 2016 · 0 comments
Assignees

Comments

@OlivierBlanvillain
Copy link
Contributor

This minimized case class:

case class W[T](seq: Option[Option[T]] = Option.empty)

Stops the compilation with the following exception:

Exception in thread "main" java.lang.Error: internal error: type of right-hand side Option[A] is not fully defined, pos = <58..98>

(full stack trace)

odersky added a commit to dotty-staging/dotty that referenced this issue Oct 13, 2016
Fixes scala#1590. Type variables should never be instantiated to types
containing wildcards.
@odersky odersky assigned odersky and unassigned odersky Oct 13, 2016
odersky added a commit that referenced this issue Oct 16, 2016
Fix #1590: Eliminate wildcards when approximating a type
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

No branches or pull requests

2 participants