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,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")