You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that there is a slight difference in behaviour:
it will be unconditionally adding cast even if its not needed.
For example in callsFoo1 cast is not needed(erasure will insert a correct one).
```
class A{
private def foo = 1
def callsFoo1(other: A & B): Int = other.foo
def callsFoo2(other: B & A): Int = other.foo
}
trait B {
def foo(i: Int) = i
}
```
Though as AndTypes are uncommon I do not expect this to have
non-negligible impact on performance.
0 commit comments