How can I call Kotlin methods with reified generics from Java? : <p>I have the following method in Kotlin:</p>

<pre><code>inline fun &lt;reified T&gt; foo() {

}
</code></pre>

<p>If I try to call this from Java like this:</p>

<pre><code>myObject.foo();
</code></pre>

<p>OR like this:</p>

<pre><code>myObject.&lt;SomeClass&gt;foo();
</code></pre>

<p>I get the following error:</p>

<blockquote>
  <p>java: foo() has private access in MyClass</p>
</blockquote>

<p>How can I call the <code>foo</code> method from Java?</p>
