89e5e10657
NB: only FileClassLowering uses this property to check whether facade is required, and IR-based check is enough in this lowering
26 lines
551 B
Kotlin
Vendored
26 lines
551 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: kt22906_1.kt
|
|
package test
|
|
|
|
class C {
|
|
fun startTemplate(): String {
|
|
val y = object {
|
|
fun foo(): String {
|
|
val job = { "OK" }
|
|
return java.util.concurrent.Callable(job).call()
|
|
}
|
|
|
|
}
|
|
return y.foo()
|
|
}
|
|
}
|
|
|
|
// FILE: kt22906_2.kt
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
if (java.lang.Class.forName("test.C\$sam\$java_util_concurrent_Callable\$0") == null) return "fail: can't find sam wrapper"
|
|
|
|
return C().startTemplate()
|
|
} |