[JS, Frontend] Not report warning with non-exportable super type
^KT-53539 fixed
This commit is contained in:
-9
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user