Closed som-snytt closed 9 months ago
fyi @lrytz
another example
trait A {
def f[B, C](c: C): Either[B, C]
}
object A {
val x = new A {
def f[B, C](c: C) = Right(c)
}
}
val x = new A {
- def f[B, C](c: C) = Right(c)
+ def f: scala.util.Right[Nothing,C][B, C](c: C) = Right(c)
}
Given the emerging class of quickfixes errors, maybe we should create a documentation that lists current set of quickfixes that are enabled in the compiler(s) so we can identify which fix can be causing the problem in addition to fixing things.
I started a list of behaviors under -Xsource:help
, I'll also try -quickfix:help
. That is my last idea before sleep.
Reproduction steps
Scala version: 2.13.12 (head)
Problem
Using
diff is not legal code.
It would be nice if I can apply edits to see the new inferred types, instead of the old inferred types, since I am migrating to 3. That is an alternative to silencing the warnings.
via the forum