KT-3307 Compiler exception trying to call Java method
#KT-3307 Fixed
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package test;
|
||||
|
||||
public interface MethodTypeParameterErased {
|
||||
|
||||
public interface Bug<T> {
|
||||
<RET extends Bug<T>> RET save();
|
||||
void foo();
|
||||
}
|
||||
|
||||
public abstract class SubBug implements Bug<Object> {
|
||||
public SubBug save() {
|
||||
return this;
|
||||
}
|
||||
|
||||
public void foo() {}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
public trait MethodTypeParameterErased : java.lang.Object {
|
||||
|
||||
public trait Bug</*0*/ T> : java.lang.Object {
|
||||
public abstract fun </*0*/ RET : test.MethodTypeParameterErased.Bug<T>?> save() : RET?
|
||||
}
|
||||
|
||||
public open class SubBug : test.MethodTypeParameterErased.Bug<jet.Any> {
|
||||
public constructor SubBug()
|
||||
public open fun save() : test.MethodTypeParameterErased.SubBug?
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user