REPL overload resolution ambiguity

Fix overload resolution ambiguity in REPL. Note, resolution for
functions declared in script is very different from regular programs:
in scripts function declared later wins. See
functionOverloadResolutionAnyBeatsString for example.

#KT-2272 Fixed
This commit is contained in:
Stepan Koltsov
2012-06-14 14:06:17 +04:00
parent 441e975323
commit 1d0ef01eea
7 changed files with 53 additions and 2 deletions
@@ -0,0 +1,6 @@
>>> fun foo(s: String) = "string"
null
>>> fun foo(a: Any) = "any"
null
>>> foo("a")
any