Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisibleForTesting behaviour is undefined for Kotlin code #97

Open
rock3r opened this issue Feb 20, 2024 · 0 comments
Open

VisibleForTesting behaviour is undefined for Kotlin code #97

rock3r opened this issue Feb 20, 2024 · 0 comments

Comments

@rock3r
Copy link

rock3r commented Feb 20, 2024

The documentation for the VisibleForTesting documentation is unclear on what the intended behaviour should be for Kotlin code.

The documentation leads you to believe that a Kotlin public member annotated with @VisibleForTesting should otherwise be considered package-private; however, Kotlin has no package-private visibility, and the one-less-than-public visibility to apply is internal.

This makes the annotation useless in Kotlin code, because if it is enforced, it means you can't use annotated symbols in the internal scope, but you can use them in the narrower but inexistent package-private scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant