I have the following method in Kotlin:
inline fun <reified T> foo() {
}
If I try to call this from Java like this:
myObject.foo();
OR like this:
myObject.<SomeClass>foo();
I get the following error:
java: foo() has private access in MyClass
How can I call the foo
method from Java?