[NI] Fix exception on capturing type with inner typealiased typed

This commit is contained in:
Mikhail Zarechenskiy
2018-06-05 12:16:08 +03:00
parent 4883fbfd23
commit 04c13aeae8
5 changed files with 35 additions and 7 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +NewInference
import kotlin.reflect.KClass
typealias MyString = String
fun test(k: KClass<out MyString>) {
k::class.java
}
@Suppress("UPPER_BOUND_VIOLATED")
public val <T> KClass<T>.java: Class<T> get() = TODO()
@@ -0,0 +1,5 @@
package
@kotlin.Suppress(names = {"UPPER_BOUND_VIOLATED"}) public val </*0*/ T> kotlin.reflect.KClass<T>.java: java.lang.Class<T>
public fun test(/*0*/ k: kotlin.reflect.KClass<out MyString /* = kotlin.String */>): kotlin.Unit
public typealias MyString = kotlin.String