mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
'original' for value parameters of fake override is not a value parameter of unsubstituted fake override. Match value parameters by index.
18 lines
353 B
Kotlin
Vendored
18 lines
353 B
Kotlin
Vendored
// !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("")
|
|
}
|