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
class Foo[T](val value : T) {type Out = T} object Foo { def fromXInt[T <: Int with Singleton](i : T): Foo[T] = new Foo[T](i) } val f1 = Foo.fromXInt(1)
8 | val f1 = Foo.fromXInt(1) | ^ | Type argument Int does not conform to upper bound Int & Singleton
The text was updated successfully, but these errors were encountered:
Fix scala#3782: Fix type parameter inference with scala.Singleton
b3f6ad5
The fix in ec53918 was incomplete: we need to check if the upper bound is a subtype and not just a reference to scala.Singleton
6a8c29a
Merge pull request #3783 from dotty-staging/fix-singleton-again
714e5bf
Fix #3782: Fix type parameter inference with scala.Singleton
Revert "Fix scala#3782: Fix type parameter inference with scala.Singl…
af6d756
…eton" This reverts commit 6a8c29a.
Merge pull request #3848 from dotty-staging/fix-ci-failure
b067da1
Revert "Fix #3782: Fix type parameter inference with scala.Singleton"
smarter
No branches or pull requests
The text was updated successfully, but these errors were encountered: