[K/JS] Don't add nested classes generated by plugins into ExportModel for interfaces ^KT-63184 Fixed

This commit is contained in:
Artem Kobzar
2023-11-14 18:16:28 +01:00
committed by Space Team
parent 82bca7a04f
commit f4d088a886
5 changed files with 31 additions and 0 deletions
@@ -323,6 +323,7 @@ class ExportModelGenerator(val context: JsIrBackendContext, val generateNamespac
members.addIfNotNull(exportProperty(candidate)?.withAttributesFor(candidate))
is IrClass -> {
if (klass.isInterface) continue
val ec = exportClass(candidate)?.withAttributesFor(candidate)
if (ec is ExportedClass) {
nestedClasses.add(ec)