A case for extending a raw Comparator
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package test;
|
||||
|
||||
import java.lang.Object;
|
||||
import java.lang.Override;
|
||||
import java.lang.UnsupportedOperationException;
|
||||
|
||||
public class RawSuperType {
|
||||
|
||||
public interface Super<T> {
|
||||
void foo(T t);
|
||||
}
|
||||
|
||||
public class Derived implements Super {
|
||||
@Override
|
||||
public void foo(Object o) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace test
|
||||
|
||||
public open class test.RawSuperType : java.lang.Object {
|
||||
public final /*constructor*/ fun <init>(): test.RawSuperType
|
||||
public open class test.RawSuperType.Derived : test.RawSuperType.Super<jet.Any?> {
|
||||
public final /*constructor*/ fun <init>(): test.RawSuperType.Derived
|
||||
public open override /*1*/ fun foo(/*0*/ p0: jet.Any?): jet.Tuple0
|
||||
}
|
||||
public abstract trait test.RawSuperType.Super</*0*/ T : jet.Any?> : java.lang.Object {
|
||||
public abstract fun foo(/*0*/ p0: T?): jet.Tuple0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user