Skip to content

Commit 4c4c88e

Browse files
committed
Test no warn or crash in nullary override
1 parent 727c318 commit 4c4c88e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/files/pos/t12851/C_2.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// scalac: -Werror
2+
class C extends T2

test/files/pos/t12851/T_1.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
trait T1 {
3+
def f: Int
4+
}
5+
trait T2 extends T1 {
6+
def f() = 42
7+
}

0 commit comments

Comments
 (0)