aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3048.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t3048.scala')
-rw-r--r--tests/pos/t3048.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/t3048.scala b/tests/pos/t3048.scala
new file mode 100644
index 000000000..dc056ecba
--- /dev/null
+++ b/tests/pos/t3048.scala
@@ -0,0 +1,8 @@
+class B
+object C extends B
+
+class F[T <: B](cons: => T)
+class F2[T <: B](cons: => T) extends F(cons)
+
+object D extends F2(C) // works
+object E extends F2(new B {})