Skip to content

Commit

Permalink
Fixed check for properties declared in a companion object
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhinkin committed Jul 12, 2024
1 parent 1ef03ba commit 3013d41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/kotlin/api/KotlinSignaturesLoading.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ private fun FieldNode.buildFieldSignature(
}

val property = companionClassCandidate?.kmProperty(name)

if (property != null && property.isMovedFromInterfaceCompanion) {
if (property != null) {
/*
* The property was moved from the companion object. Take all the annotations from there
* The property was declared in the companion object. Take all the annotations from there
* to be able to filter out the non-public markers.
*
* See https://github.com/Kotlin/binary-compatibility-validator/issues/90
Expand Down

0 comments on commit 3013d41

Please sign in to comment.