I have a piece of Kotlin code (roughly) like this:
public fun method(input: Unit?)
When I try to call this function from another Java project that does not depend on Kotlin directly, I receive an error message: Cannot access kotlin.Unit, despite being able to navigate to the declaration site.
I am aware that this particular construct is silly, I was just wondering why Java couldn’t access a public declaration.