KT-1600: call to non-overriden generic method
This commit is contained in:
@@ -491,6 +491,11 @@ public class JetTypeMapper {
|
||||
return null;
|
||||
|
||||
final DeclarationDescriptor functionParent = functionDescriptor.getOriginal().getContainingDeclaration();
|
||||
|
||||
while(functionDescriptor.getKind()==CallableMemberDescriptor.Kind.FAKE_OVERRIDE) {
|
||||
functionDescriptor = functionDescriptor.getOverriddenDescriptors().iterator().next();
|
||||
}
|
||||
|
||||
JvmMethodSignature descriptor = mapSignature(functionDescriptor.getOriginal(), true, kind);
|
||||
String owner;
|
||||
String ownerForDefaultImpl;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
abstract class Foo<T> {
|
||||
fun hello(id: T) = "O$id"
|
||||
}
|
||||
|
||||
class Bar: Foo<String>() {
|
||||
}
|
||||
|
||||
fun box() = Bar().hello("K")
|
||||
@@ -75,4 +75,8 @@ public class ObjectGenTest extends CodegenTestCase {
|
||||
public void testKt1186() throws Exception {
|
||||
blackBoxFile("regressions/kt1186.kt");
|
||||
}
|
||||
|
||||
public void testKt1600() throws Exception {
|
||||
blackBoxFile("regressions/kt1600.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user