JS: always translate reified type parameters
This commit is contained in:
+4
-4
@@ -121,10 +121,6 @@ public final class FunctionTranslator extends AbstractTranslator {
|
||||
|
||||
@NotNull
|
||||
private List<JsParameter> translateParameters() {
|
||||
if (extensionFunctionReceiverName == null && descriptor.getValueParameters().isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
List<JsParameter> jsParameters = new SmartList<JsParameter>();
|
||||
|
||||
for (TypeParameterDescriptor type : descriptor.getTypeParameters()) {
|
||||
@@ -135,6 +131,10 @@ public final class FunctionTranslator extends AbstractTranslator {
|
||||
}
|
||||
}
|
||||
|
||||
if (extensionFunctionReceiverName == null && descriptor.getValueParameters().isEmpty()) {
|
||||
return jsParameters;
|
||||
}
|
||||
|
||||
mayBeAddThisParameterForExtensionFunction(jsParameters);
|
||||
addParameters(jsParameters, descriptor, context());
|
||||
return jsParameters;
|
||||
|
||||
Reference in New Issue
Block a user