Substituted super functions from mapped classes.

This commit is contained in:
Evgeny Gerashchenko
2013-02-15 20:43:48 +04:00
parent 30afc99ccf
commit 8d101ad5fa
@@ -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();