Copy typeParameters from original declaration to the exportedDefaultStubFun before substitution of type parameters
This commit is contained in:
+1
-1
@@ -107,9 +107,9 @@ class ExportedDefaultParameterStub(val context: JsIrBackendContext) : Declaratio
|
||||
|
||||
context.additionalExportedDeclarations.add(exportedDefaultStubFun)
|
||||
|
||||
exportedDefaultStubFun.returnType = declaration.returnType.remapTypeParameters(declaration, exportedDefaultStubFun)
|
||||
exportedDefaultStubFun.parent = declaration.parent
|
||||
exportedDefaultStubFun.copyParameterDeclarationsFrom(declaration)
|
||||
exportedDefaultStubFun.returnType = declaration.returnType.remapTypeParameters(declaration, exportedDefaultStubFun)
|
||||
exportedDefaultStubFun.valueParameters.forEach { it.defaultValue = null }
|
||||
|
||||
declaration.origin = JsLoweredDeclarationOrigin.JS_SHADOWED_EXPORT
|
||||
|
||||
Reference in New Issue
Block a user