Use JvmWildcard on return type of getContributedVariables/getContributedFunctions
This commit is contained in:
@@ -349,7 +349,7 @@ public abstract class AnnotationCodegen {
|
||||
private String getAnnotationArgumentJvmName(@Nullable ClassDescriptor annotationClass, @NotNull Name parameterName) {
|
||||
if (annotationClass == null) return parameterName.asString();
|
||||
|
||||
Collection<PropertyDescriptor> variables =
|
||||
Collection<? extends PropertyDescriptor> variables =
|
||||
annotationClass.getUnsubstitutedMemberScope().getContributedVariables(parameterName, NoLookupLocation.FROM_BACKEND);
|
||||
if (variables.size() != 1) return parameterName.asString();
|
||||
|
||||
|
||||
@@ -467,7 +467,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
||||
return;
|
||||
}
|
||||
|
||||
Collection<SimpleFunctionDescriptor> functions = descriptor.getDefaultType().getMemberScope().getContributedFunctions(
|
||||
Collection<? extends SimpleFunctionDescriptor> functions = descriptor.getDefaultType().getMemberScope().getContributedFunctions(
|
||||
Name.identifier("toArray"), NoLookupLocation.FROM_BACKEND
|
||||
);
|
||||
boolean hasGenericToArray = false;
|
||||
|
||||
Reference in New Issue
Block a user