Skip to content

Commit cfa1ccf

Browse files
committed
test for allOverriddenSymbols
... to verify whether they work correctly.
1 parent 88dcf9c commit cfa1ccf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/overrides.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class A[T] {
2+
3+
def f(x: T)(y: T = x) = y
4+
5+
}
6+
7+
class B extends A[Int] {
8+
9+
def f(x: Int)(y: Int) = y
10+
11+
f(2)()
12+
13+
}

0 commit comments

Comments
 (0)