Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/kt21246a.kt
T
2018-06-28 12:26:41 +02:00

16 lines
261 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// TARGET_BACKEND: JVM
object Test {
fun test() = { createWildcard("OK") }()
@JvmStatic
private fun createWildcard(s: String) = Type<Any>(s).x
class Type<T>(val x: String)
}
fun box() = Test.test()