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