From 8b18818bcc5e7d59791237b5d397ff0d2308c28d Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Thu, 17 Sep 2020 17:04:31 +0300 Subject: [PATCH] [JS IR] add base class to the $metadata$.interfaces list This is needed for better compatibility with the old BE. Some code in Space relies on the $metadata$ format. --- .../ir/backend/js/transformers/irToJs/JsClassGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt index 00b91f00796..2d154138536 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsClassGenerator.kt @@ -247,7 +247,7 @@ class JsClassGenerator(private val irClass: IrClass, val context: JsGenerationCo val symbol = it.classifierOrFail as IrClassSymbol val isFunctionType = it.run { isFunctionOrKFunction() || isSuspendFunctionOrKFunction() } // TODO: make sure that there is a test which breaks when isExternal is used here instead of isEffectivelyExternal - if (symbol.isInterface && !isFunctionType && !symbol.isEffectivelyExternal) { + if (/*symbol.isInterface && */!it.isAny() && !isFunctionType && !symbol.isEffectivelyExternal) { JsNameRef(context.getNameForClass(symbol.owner)) } else null }