Fix wrong contract assumption
Currently SamAdapterOverridabilityCondition can be called even for incompatible descriptors #KT-10486 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package test;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
|
||||
public final class DifferentParametersCount {
|
||||
public static class A {
|
||||
static public void foo(Runnable x, int y) {}
|
||||
}
|
||||
|
||||
public static class B extends A {
|
||||
// SAM adapter should not override A.foo
|
||||
static public void foo(Runnable x) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user