JVM_IR Do not generate generic signatures for lifted lambda methods

This commit is contained in:
Dmitry Petrov
2021-03-10 09:45:34 +03:00
committed by TeamCityServer
parent 00a335129b
commit 737fbe271f
14 changed files with 129 additions and 27 deletions
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// CHECK_BYTECODE_LISTING
// WITH_SIGNATURES
fun interface FunIFace<T0, R> {
fun call(arg: T0): R
}
fun <T1, R> call(value: T1, f: FunIFace<T1, R>): R {
return f.call(value)
}
fun <T2> test(x: T2) = call(x) { it }
fun box() = test("OK")