We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
object Test { def foo(x: 0 | 1) = () def bar: 0 | 1 = 0 foo(bar) }
Fails with:
4 | foo(bar) | ^^^ | Found: (Test.bar : => (0 : Int) | (1 : Int)) | Required: (0 : Int) | (1 : Int)
Here are the relevant part of the logs with trancing enabled, it looks like there might be a missing case missing in type comparer?:
==> isSubType (Test.bar : => (0 : Int) | (1 : Int)) <:< (0 : Int) | (1 : Int) ? ==> isSubType (Test.bar : => (0 : Int) | (1 : Int)) <:< Nothing ? ==> isSubType => (0 : Int) | (1 : Int) <:< Nothing LoApprox? <== isSubType => (0 : Int) | (1 : Int) <:< Nothing LoApprox = false <== isSubType (Test.bar : => (0 : Int) | (1 : Int)) <:< Nothing = false <== isSubType (Test.bar : => (0 : Int) | (1 : Int)) <:< (0 : Int) | (1 : Int) = false
The text was updated successfully, but these errors were encountered:
The following works:
object Test { def foo(x: 0 | 1) = () def bar(): 0 | 1 = 0 foo(bar()) }
So it's probably an issue with the subtyping checks involving ExprType on the left
ExprType
Sorry, something went wrong.
94b8a7d
Merge pull request #8126 from dotty-staging/fix-#8084
ae81868
Fix #8084: Fix atoms computation
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Fails with:
Here are the relevant part of the logs with trancing enabled, it looks like there might be a missing case missing in type comparer?:
The text was updated successfully, but these errors were encountered: