Skip to content

Commit ed69685

Browse files
committed
Fix test
1 parent 85efd24 commit ed69685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/neg/overrides.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class A[T] {
4040

4141
def f(x: T)(y: T = x) = y
4242

43-
def next: T
43+
def next: T = ???
4444

4545
}
4646

@@ -50,7 +50,7 @@ class B extends A[Int] {
5050

5151
f(2)()
5252

53-
def next(): Int // error: incompatible type
53+
override def next(): Int = ??? // error: incompatible type
5454

5555
}
5656

0 commit comments

Comments
 (0)