fix incorrect overload error on regular function and extension function with same name

===
fun ff() = 1

fun Int.ff() = 1
===
This commit is contained in:
Stepan Koltsov
2011-11-12 16:54:33 +04:00
parent 50c7364f6b
commit 3193b7d2c4
3 changed files with 52 additions and 11 deletions
@@ -127,6 +127,10 @@ public class JetOverloadTest extends JetLiteFixture {
"fun a<T1, X : Array<out T1>>(a : Array<*>) : T1",
"fun a<T, Y : Array<out T>>(a : Array<in T>) : T");
assertOverloadable(
"fun ff() : Int",
"fun Int.ff() : Int"
);
}
private void assertNotOverloadable(String funA, String funB) {