Skip to content

Commit 38442e5

Browse files
committed
Add test to show that rule is in line with normal overloading resolution
1 parent 923d5c8 commit 38442e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/run/overloading-specifity.scala

+5
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@ object Test extends App {
2424
assert(a.foo[Int].i == 1)
2525
assert(b.foo[Int].i == 2)
2626

27+
def f: Int = 1
28+
def f(x: Int): Int = x
29+
30+
val x = f
31+
val x1: Int = x
2732
}

0 commit comments

Comments
 (0)