Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/kt21246.kt
T

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()