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

16 lines
310 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// SKIP_JDK6
// FULL_JDK
import java.util.function.Supplier
open class Base(val supplier: Supplier<Number>)
object Extended : Base(Supplier { 32 })
fun box(): String {
val blam = Extended
return if (blam.supplier.get() == 32) "OK" else "Fail"
}