Skip to content

Commit 96419b4

Browse files
committed
Add test scenarios
1 parent d093f61 commit 96419b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/neg/i1501.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@ object Test {
1616
println(new C().foo)
1717
}
1818
}
19+
20+
object Test2 {
21+
class A
22+
class SubA(x: Int) extends A
23+
trait TA extends A
24+
trait TSubA extends SubA(2) // error: trait TSubA may not call constructor of class SubA
25+
26+
27+
class Foo extends TA with TSubA // error: missing argument for parameter x of constructor SubA:
28+
}

0 commit comments

Comments
 (0)