aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/i1501.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/neg/i1501.scala b/tests/neg/i1501.scala
index 045f2be1d..685566403 100644
--- a/tests/neg/i1501.scala
+++ b/tests/neg/i1501.scala
@@ -16,3 +16,13 @@ object Test {
println(new C().foo)
}
}
+
+object Test2 {
+ class A
+ class SubA(x: Int) extends A
+ trait TA extends A
+ trait TSubA extends SubA(2) // error: trait TSubA may not call constructor of class SubA
+
+
+ class Foo extends TA with TSubA // error: missing argument for parameter x of constructor SubA:
+}