diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/t3048.scala (renamed from tests/pos/t3048.scala) | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/pos/t3048.scala b/tests/run/t3048.scala index dc056ecba..8762047af 100644 --- a/tests/pos/t3048.scala +++ b/tests/run/t3048.scala @@ -1,8 +1,17 @@ class B object C extends B -class F[T <: B](cons: => T) +class F[T <: B](cons: => T) { + def f = cons +} class F2[T <: B](cons: => T) extends F(cons) object D extends F2(C) // works object E extends F2(new B {}) + +object Test { + def main(args: Array[String]): Unit = { + D.f + E.f + } +} |