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
More of the usual with dealiasing, widening, etc, the problem neatly summarized here:
scala> isWeakSubType(typeOf[Int], typeOf[Double]) res0: Boolean = true scala> isWeakSubType(typeOf[Int].narrow, typeOf[Double]) res1: Boolean = false
I already fixed it, opening to have a reference. Test case:
object AdaptWithWeaklyConformantType { implicit class D(d: Double) { def double = d*2 } val x1: Int = 1 var x2: Int = 2 val x3 = 3 var x4 = 4 final val x5 = 5 final var x6 = 6 def f1 = x1.double def f2 = x2.double def f3 = x3.double def f4 = x4.double def f5 = x5.double def f6 = x6.double }
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7228?orig=1 Reporter: @paulp
Sorry, something went wrong.
@paulp said: paulp/scala@ba159c1
@retronym said: Closing as I don't see residuals other than the commit message "probably not the ideal fix"
paulp
No branches or pull requests
More of the usual with dealiasing, widening, etc, the problem neatly summarized here:
I already fixed it, opening to have a reference. Test case:
The text was updated successfully, but these errors were encountered: