Kotlin / binary-compatibility-validator

Public API management tool
Apache License 2.0
788 stars 57 forks source link

Postpone static field's companion resolution #251

Closed fzhinkin closed 1 month ago

fzhinkin commented 1 month ago

245 fixed the way const vars from companion objects are handled. Unfortunately, the solution interferes with how any other static final fields are processed.

This PR postpones companion class resolution until it's known that a field corresponds to a property declared in a companion object.

Fixes #250

fzhinkin commented 1 month ago

@martinbonnin PTAL

martinbonnin commented 1 month ago

LGTM thanks a lot for fixing this 🙏