JVM_IR Do not generate generic signatures for lifted lambda methods
This commit is contained in:
committed by
TeamCityServer
parent
00a335129b
commit
737fbe271f
+14
@@ -0,0 +1,14 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// JVM_TARGET: 1.8
|
||||
// LAMBDAS: INDY
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// WITH_SIGNATURES
|
||||
|
||||
fun <T1, R> call(value: T1, f: (T1) -> R): R {
|
||||
return f(value)
|
||||
}
|
||||
|
||||
fun <T2> test(x: T2) = call(x) { it }
|
||||
|
||||
fun box() = test("OK")
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
@kotlin.Metadata
|
||||
public final class<null> GenericLambdaSignatureKt {
|
||||
// source: 'genericLambdaSignature.kt'
|
||||
public final static <<T1:Ljava/lang/Object;R:Ljava/lang/Object;>(TT1;Lkotlin/jvm/functions/Function1<-TT1;+TR;>;)TR;> method call(p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function1): java.lang.Object
|
||||
public final static <<T2:Ljava/lang/Object;>(TT2;)TT2;> method test(p0: java.lang.Object): java.lang.Object
|
||||
public final static @org.jetbrains.annotations.NotNull <null> method box(): java.lang.String
|
||||
private final static <null> method test$lambda-0(p0: java.lang.Object): java.lang.Object
|
||||
}
|
||||
Reference in New Issue
Block a user