JVM_IR pass reified type parameters in indy SAM conversion proxy
This commit is contained in:
committed by
teamcityserver
parent
40fe67880b
commit
005d3b1f6f
+18
@@ -0,0 +1,18 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// JVM_TARGET: 1.8
|
||||
// SAM_CONVERSIONS: INDY
|
||||
|
||||
// CHECK_BYTECODE_TEXT
|
||||
// JVM_IR_TEMPLATES
|
||||
// 1 java/lang/invoke/LambdaMetafactory
|
||||
|
||||
// FILE: inlineFunRef.kt
|
||||
|
||||
inline fun plusK(x: String) = x.toString() + "K"
|
||||
|
||||
fun box() = J(::plusK).apply("O")
|
||||
|
||||
// FILE: J.java
|
||||
public interface J {
|
||||
public String apply(String x);
|
||||
}
|
||||
Reference in New Issue
Block a user