-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Exception in thread "main" java.lang.AssertionError: cannot merge Constraint(...) #4272
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
Labels
Comments
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 8, 2018
Debugging revealed that in the failing testcase `e2: TypeBounds` while `e1: TypeRef`, and it's not clear why it should be otherwise. Other fixes are possible, this one is easy to maintain but will repeat a few checks.
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2018
Debugging revealed that in the failing testcase `e2: TypeBounds` while `e1: TypeRef`, and it's not clear why it should be otherwise. Other fixes are possible, this one is easy to maintain but will repeat a few checks.
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2018
Debugging revealed that in the failing testcase `e2: TypeBounds` while `e1: TypeRef`, and it's not clear why it should be otherwise. Other fixes are possible, this one is easy to maintain but will repeat a few checks.
Thanks for the report! My WIP fix in #4276 gets the desired error:
|
Minimized further to: object Main {
def f(m: Map[String, Boolean]) = {}
println(f(Map('a' -> true))) // error, no crash
println(this.f(Map('a' -> true))) // error and crash
} EDIT: The call to |
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2018
Blaisorblade
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2018
Debugging revealed that in the failing testcase `e2: TypeBounds` while `e1: TypeRef`, and it's not clear why it should be otherwise.
Blaisorblade
added a commit
that referenced
this issue
Apr 9, 2018
Fix #4272: make OrderingConstraint.&.mergeEntries symmetric
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scala source code:
Scala compiler output (MS Windows 7 SP1, Java SDK 1.8.0_161):
Dotty compiler output (MS Windows 7 SP1, Java SDK 1.8.0_161):
The text was updated successfully, but these errors were encountered: