Files
kotlin-fork/compiler/testData/codegen/box/functions/localFunctions/kt4777.kt
T
2016-11-09 21:41:12 +03:00

18 lines
295 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
var result = "Fail"
val p = object : Runnable {
override fun run() {
fun <T : Any> T.id() = this
result = "OK".id()
}
}
fun box(): String {
p.run()
return result
}