15 lines
280 B
Kotlin
Vendored
15 lines
280 B
Kotlin
Vendored
// 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"
|
|
}
|