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
@@ -92,6 +92,16 @@ public class ReplInterpreterTest {
testFile("twoClosures.repl");
}
@Test
public void functionOverloadResolutionAnyBeatsString() {
testFile("functionOverloadResolutionAnyBeatsString.repl");
}
@Test
public void functionOverloadResolution() {
testFile("functionOverloadResolution.repl");
}
@Test
public void empty() {
testFile("empty.repl");