diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-06 10:09:03 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-06 10:09:14 +0100 |
commit | bdb0103d5196e3d64e9ea2d977058f49a78d749d (patch) | |
tree | bddc09693c929f9d382281a604d418a3ef13a26b /tests | |
parent | 6b3f2225a8d6de898ca9a2299570056807de1a92 (diff) | |
download | dotty-bdb0103d5196e3d64e9ea2d977058f49a78d749d.tar.gz dotty-bdb0103d5196e3d64e9ea2d977058f49a78d749d.tar.bz2 dotty-bdb0103d5196e3d64e9ea2d977058f49a78d749d.zip |
Fix to overloading resolution: prioritize non-methods over methods.
If one alternative is a non-method yet the other is a method (of type PolyType or MethodType), the first alternative is "as specific as" the second.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/overloaded.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/pos/overloaded.scala b/tests/pos/overloaded.scala index ba5d8c205..ebc1501d8 100644 --- a/tests/pos/overloaded.scala +++ b/tests/pos/overloaded.scala @@ -18,5 +18,7 @@ object overloaded { val y2: Any = g _ println(g) - + + val xs = List("a", "b") + xs.mkString } |