KT-10939 CANNOT_COMPLETE_RESOLVE for inherited generic interface method

'original' for value parameters of fake override is not a value parameter of unsubstituted fake override.
Match value parameters by index.
This commit is contained in:
Dmitry Petrov
2016-02-05 16:02:47 +03:00
parent 9f786c00a7
commit 5968ce96df
7 changed files with 130 additions and 4 deletions
@@ -0,0 +1,17 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
// FILE: Base.java
public interface Base {
<T> String foo(T a);
<T> int foo(T a, Object... args);
}
// FILE: Derived.java
public interface Derived extends Base {
}
// FILE: test.kt
fun testDerived(base: Base, derived: Derived) {
val test1: String = base.foo("")
val test2: String = derived.foo("")
}