We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 { type F[N <: 0 | 1] = N def fl[N <: 0 | 1]: F[N] = ??? }
-- [E057] Type Mismatch Error: /test.scala:3:24 3 | def fl[N <: 0 | 1]: F[N] = ??? | ^ |Type argument N does not conform to upper bound (0 : scala.Int) | (1 : scala.Int)
==> isSubType N <:< (0 : scala.Int) | (1 : scala.Int) ? ==> isSubType N <:< scala.Nothing ? ==> isSubType (0 : scala.Int) | (1 : scala.Int) <:< scala.Nothing LoApprox? ==> isSubType scala.Int <:< scala.Nothing LoApprox? <== isSubType scala.Int <:< scala.Nothing LoApprox = false ==> isSubType (0 : scala.Int) <:< scala.Nothing LoApprox? ==> isSubType scala.Int <:< scala.Nothing LoApprox? <== isSubType scala.Int <:< scala.Nothing LoApprox = false <== isSubType (0 : scala.Int) <:< scala.Nothing LoApprox = false <== isSubType (0 : scala.Int) | (1 : scala.Int) <:< scala.Nothing LoApprox = false <== isSubType N <:< scala.Nothing = false <== isSubType N <:< (0 : scala.Int) | (1 : scala.Int) = false
(I tought this was related to #8126, but it's something else)
The text was updated successfully, but these errors were encountered:
86355ea
Merge pull request #8137 from dotty-staging/fix-#8129
6466611
Fix #8129: Refine atoms computation
No branches or pull requests
(I tought this was related to #8126, but it's something else)
The text was updated successfully, but these errors were encountered: