-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
bugComponent does not function as intendedComponent does not function as intendedgeneratorIssues binding a Java library (generator, class-parse, etc.)Issues binding a Java library (generator, class-parse, etc.)
Description
Context: dotnet/android#4955
Given a public nested type inside a private/internal type in Kotlin:
internal data class ParentType () {
enum class ChildEnum { VALUE1, VALUE2 }
}
We correctly hide ParentType
but we do not hide ChildEnum
because we do not check parent visibility. This results in a warning such as this when generator
is trying nest the ChildEnum
object inside to ParentType
object:
warning BG8604: top ancestor ParentType not found for nested type ParentType.ChildEnum
The good news is ChildEnum
will not be bound due to the warning, so the final binding is correct, but we should handle this correctly.
Metadata
Metadata
Assignees
Labels
bugComponent does not function as intendedComponent does not function as intendedgeneratorIssues binding a Java library (generator, class-parse, etc.)Issues binding a Java library (generator, class-parse, etc.)