Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/kt21246a.kt
T
2019-11-19 11:00:09 +03:00

16 lines
265 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: 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()