mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-21 08:31:29 +00:00
24 lines
470 B
Java
24 lines
470 B
Java
package test;
|
|
|
|
import java.util.Iterator;
|
|
|
|
public class InnerOfGeneric {
|
|
public interface S<E> {
|
|
Iterator<E> iterator();
|
|
}
|
|
|
|
public abstract class A<K> {
|
|
public abstract class Inner implements S<K> {
|
|
}
|
|
}
|
|
|
|
public class B<L> extends A<L> {
|
|
public class SubInner extends Inner {
|
|
@Override
|
|
public Iterator<L> iterator() {
|
|
throw new RuntimeException();
|
|
}
|
|
}
|
|
}
|
|
}
|