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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user