7d59c7689c
Due to the direct invoke optimization, most callable reference tests were not generating callable references/lambdas.
15 lines
245 B
Kotlin
Vendored
15 lines
245 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// TARGET_BACKEND: JVM
|
|
|
|
object Test {
|
|
|
|
fun test() = { createWildcard("OK") }.let { it() }
|
|
|
|
@JvmStatic
|
|
private fun createWildcard(s: String) = Type<Any>(s).x
|
|
|
|
class Type<T>(val x: String)
|
|
|
|
}
|
|
|
|
fun box() = Test.test() |