blob: 40e20a248bacc8795c390ad8ca47db61e60d0a84 [file]
// WITH_STDLIB
// 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()