title: Local final class <no name provided> issue for throwable: Class<out Throwable> in Kotlin
body: <p>I have some problems when trying to migrate my java methods to project with kotlin. I have a method with next signature:</p>
  <pre><code>public static RetryTemplate getRetryTemplate(long initialInterval, int maxAttempts, Class&lt;? extends Throwable&gt; throwable) { .... }
  </code></pre>
  <p>or in Kotlin:</p>
  <pre><code>fun getRetryTemplate(initialInterval: Long, maxAttempts: Int, throwable: Class&lt;out Throwable&gt;): RetryTemplate? {
  </code></pre>
  <p>When I'm trying to call this method in Kotlin code I get a compiler issue - Local final class no name provided (see screenshot)</p>
  <pre><code>RetryUtils.getRetryTemplate(5000, 3, Exception.class)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/718KC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/718KC.png" alt="enter image description here" /></a></p>
  <p>How to fix it?</p>