mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
19 lines
390 B
Java
Vendored
19 lines
390 B
Java
Vendored
package test;
|
|
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
public final class FakeStaticOverrides {
|
|
public static class A {
|
|
static public void foo(Function0<Unit> x) {}
|
|
}
|
|
|
|
public static class B extends A {
|
|
// SAM adapter should not override A.foo
|
|
static public void foo(Runnable x) {}
|
|
}
|
|
|
|
public static class C extends B {
|
|
}
|
|
}
|