Substituted super functions from mapped classes.
This commit is contained in:
+5
-3
@@ -220,8 +220,9 @@ public class SignaturesPropagationData {
|
|||||||
assert classFqName != null;
|
assert classFqName != null;
|
||||||
|
|
||||||
if (!JavaToKotlinClassMap.getInstance().mapPlatformClass(new FqName(classFqName)).isEmpty()) {
|
if (!JavaToKotlinClassMap.getInstance().mapPlatformClass(new FqName(classFqName)).isEmpty()) {
|
||||||
List<FunctionDescriptor> funsFromMap = JavaToKotlinMethodMap.INSTANCE.getFunctions(superMethod, containingClass);
|
for (FunctionDescriptor superFun : JavaToKotlinMethodMap.INSTANCE.getFunctions(superMethod, containingClass)) {
|
||||||
superFunctions.addAll(funsFromMap);
|
superFunctions.add(substituteSuperFunction(superclassToSupertype, superFun));
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,7 +386,8 @@ public class SignaturesPropagationData {
|
|||||||
return autoArguments;
|
return autoArguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<List<TypeProjectionAndVariance>> typeArgumentsFromSuper = calculateTypeArgumentsFromSuper((ClassDescriptor) classifier, typesFromSuper);
|
List<List<TypeProjectionAndVariance>> typeArgumentsFromSuper = calculateTypeArgumentsFromSuper((ClassDescriptor) classifier,
|
||||||
|
typesFromSuper);
|
||||||
|
|
||||||
// Modify type arguments using info from typesFromSuper
|
// Modify type arguments using info from typesFromSuper
|
||||||
List<TypeProjection> resultArguments = Lists.newArrayList();
|
List<TypeProjection> resultArguments = Lists.newArrayList();
|
||||||
|
|||||||
Reference in New Issue
Block a user