summaryrefslogtreecommitdiff
path: root/test/pos/bug115.scala
blob: 87a5c109159a2351aead18c397ade61a5317d661 (plain) (blame)
1
2
3
4
5
6
7
8
class S[A](f: A => A, x: A) {
  System.out.println(f(x));
}
class T[A](f: A => A, y: A) extends S(x: A => f(x), y) {
}
object Test with Application {
  new T[int](x: int => x * 2, 1);
}