Skip to content

Commit

Permalink
Add test to show that rule is in line with normal overloading resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Mar 17, 2019
1 parent 923d5c8 commit 38442e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/run/overloading-specifity.scala
Expand Up @@ -24,4 +24,9 @@ object Test extends App {
assert(a.foo[Int].i == 1)
assert(b.foo[Int].i == 2)

def f: Int = 1
def f(x: Int): Int = x

val x = f
val x1: Int = x
}

0 comments on commit 38442e5

Please sign in to comment.