You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@PrivateApi
classKtPrivateApi {
funfoo() =Unit
}
classKtPublicApi : KtPrivateApi() {
}
funusage() {
KtPublicApi().foo() // ok, if @PrivateApi applies only for the class declaration but not its members
}
Example 2
This is not applicable for Kotlin, but should be supported in a library, which has compiled classes as input.
// not covered the case when there is public superclass after chain of private superclasses
The text was updated successfully, but these errors were encountered:
dovchinnikov
changed the title
public members of non-API super type should be visible in the inheritorpublic members of non-API supertype should be visible in the inheritor
Apr 10, 2024
Example 1
Example 2
This is not applicable for Kotlin, but should be supported in a library, which has compiled classes as input.
For IJ, I've implemented this here:
https://github.com/JetBrains/intellij-community/blob/f8819a2580a0cc6c2f6a456a6a5fa83bf2e3cf7e/tools/apiDump/src/impl.kt#L134
Also please take a look at supertype expansion:
https://github.com/JetBrains/intellij-community/blob/f8819a2580a0cc6c2f6a456a6a5fa83bf2e3cf7e/tools/apiDump/src/impl.kt#L340
It solves this problem:
binary-compatibility-validator/src/main/kotlin/api/KotlinSignaturesLoading.kt
Line 276 in 3a70033
The text was updated successfully, but these errors were encountered: