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
When generating an interface, redundant public modifier is added to nested types. I see in the documentation, that compatibility with explicit API mode is desired, but this modifier is not required for explicit API mode compatibility.
That makes sense! The original info was more limiting than it needed to be. It extends beyond interfaces though to classes etc though, no?
internal class Class {
private val _flow: MutableStateFlow<String> =
MutableStateFlow("")
public val flow: StateFlow<String>
get() = _flow.asStateFlow()
}
Where flow is unnecessarily public. Just want to try and understand the full scope, seems like a fun first issue to try and tackle
Describe the bug
When generating an interface, redundant
public
modifier is added to nested types. I see in the documentation, that compatibility with explicit API mode is desired, but this modifier is not required for explicit API mode compatibility.To Reproduce
Results in:
But
public
visibility modifier is redundant.Expected behavior
I'd expect the public visibility modifier to not be added.
The text was updated successfully, but these errors were encountered: