Closed Schahen closed 4 years ago
We're adding EXTERNAL_DELEGATION suppression on a file level while actually we can add it exactly where it's needed, like we do with NESTED_CLASS_IN_EXTERNAL_INTERFACE. In other words this:
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") external interface MySymbol { companion object : MySymbolConstructor by definedExternally }
can be just
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS") @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE", "EXTERNAL_DELEGATION") external interface MySymbol { companion object : MySymbolConstructor by definedExternally }
Released in 0.5.6
We're adding EXTERNAL_DELEGATION suppression on a file level while actually we can add it exactly where it's needed, like we do with NESTED_CLASS_IN_EXTERNAL_INTERFACE. In other words this:
can be just