KT-3307 Compiler exception trying to call Java method

#KT-3307 Fixed
This commit is contained in:
Andrey Breslav
2013-02-07 15:40:12 +04:00
parent 091399aa4b
commit 0b4b87fc3a
7 changed files with 81 additions and 6 deletions
@@ -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() {}
}
}
@@ -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?
}
}