[JS, Frontend] Not report warning with non-exportable super type

^KT-53539 fixed
This commit is contained in:
Ilya Goncharov
2022-08-18 12:46:40 +00:00
committed by Space
parent c8a48473e2
commit 2f75ea585e
2 changed files with 5 additions and 14 deletions
@@ -141,15 +141,6 @@ object JsExportDeclarationChecker : DeclarationChecker {
// Covered by ENUM_CLASS
return
}
val supertypes = descriptor.defaultType.supertypes()
val isEnum = supertypes.any { KotlinBuiltIns.isEnum(it) }
for (superType in supertypes) {
if (!superType.isExportable(bindingContext) && !(KotlinBuiltIns.isComparable(superType) && isEnum)) {
trace.report(ErrorsJs.NON_EXPORTABLE_TYPE.on(declaration, "super", superType))
}
}
}
}
}