Commit d761770
Update return type inference
Scala 3 does not infer more precise types for the return type of overriding methods.
This can be seen in the following example:
```scala
type T
type U <: T
abstract class A{
def m: T
}
class B extends A{
def m = ??? : U
}
val res: U = (new B).m
```1 parent 04ceaef commit d761770
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
616 | | - | |
617 | | - | |
| 615 | + | |
618 | 616 | | |
619 | 617 | | |
620 | 618 | | |
| |||
0 commit comments