summaryrefslogtreecommitdiff
path: root/test/files/neg/bug145.scala
blob: da66ddba0506ffa1c22451516ad25bccd35b991c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class B[T] {
  def foo(x: T): Int = 1;
}
trait J[T] {
  def foo(x: T): Int;
}
trait I[T] extends B[T] with J[T] {
  abstract override def foo(x: T): Int = super[J].foo(x) + 1;
}
class C extends B[Int] {
  override def foo(x: Int): Int = x;
}
class D extends C with I[Int];
object T with Application {
  System.out.println((new D).foo(3));
}