mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
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
7 lines
89 B
Plaintext
7 lines
89 B
Plaintext
>>> fun foo(s: String) = "string"
|
|
null
|
|
>>> fun foo(a: Any) = "any"
|
|
null
|
|
>>> foo("a")
|
|
any
|