18 lines
358 B
Kotlin
Vendored
18 lines
358 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// JVM_TARGET: 1.8
|
|
// SAM_CONVERSIONS: INDY
|
|
|
|
// CHECK_BYTECODE_TEXT
|
|
// JVM_IR_TEMPLATES
|
|
// 0 java/lang/invoke/LambdaMetafactory
|
|
// 1 final synthetic class ConstructorReferenceKt\$box\$1
|
|
|
|
class C(val test: String)
|
|
|
|
fun interface MakeC {
|
|
fun make(x: String): C
|
|
}
|
|
|
|
fun make(makeC: MakeC) = makeC.make("OK")
|
|
|
|
fun box() = make(::C).test |