20 lines
348 B
Kotlin
Vendored
20 lines
348 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// TARGET_BACKEND: JVM
|
|
|
|
object Test {
|
|
|
|
@JvmStatic
|
|
fun test() = action { createWildcard("OK") }.x
|
|
|
|
@JvmStatic
|
|
private fun createWildcard(s: String): Type<*>? {
|
|
return Type<Any>(s)
|
|
}
|
|
|
|
inline fun action(crossinline f: () -> Type<*>?) = f()!!
|
|
|
|
class Type<T>(val x: String)
|
|
|
|
}
|
|
|
|
fun box() = Test.test() |