mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
25 lines
553 B
Java
Vendored
25 lines
553 B
Java
Vendored
package test;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
// Extracted from KT-3302, see Kt3302 test, as well
|
|
public interface SubclassFromGenericAndNot {
|
|
|
|
public interface NonGeneric {
|
|
void foo(@NotNull String s);
|
|
|
|
void dummy(); // to avoid loading as SAM interface
|
|
}
|
|
|
|
public interface Generic<T> {
|
|
public void foo(T key);
|
|
|
|
void dummy(); // to avoid loading as SAM interface
|
|
}
|
|
|
|
public interface Sub extends NonGeneric, Generic<String> {
|
|
@Override
|
|
public void foo(String key);
|
|
}
|
|
}
|