Files
kotlin-fork/compiler/testData/codegen/box/sam/constructors/kt16790.kt
T
Alexander Udalov cca6ba38be Add tests for obsolete codegen issues
#KT-16790 Obsolete
 #KT-16858 Obsolete
 #KT-17441 Obsolete
2019-01-09 19:18:54 +01:00

16 lines
306 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// 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"
}