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