JVM_IR KT-50856 fix generic signature for SAM proxy function

This commit is contained in:
Dmitry Petrov
2022-01-20 10:26:45 +03:00
committed by Space
parent cd578e9d13
commit 12d8b189a9
6 changed files with 62 additions and 11 deletions
@@ -0,0 +1,24 @@
// TARGET_BACKEND: JVM_IR
// JVM_TARGET: 1.8
// WITH_STDLIB
// FILE: box.kt
fun <U> get(x: Sam<U>): U =
x.get()
fun test() {
get<Map<String, String>>(::mutableMapOf)
}
fun box(): String {
test()
return "OK"
}
// FILE: Sam.java
public interface Sam<T> {
T get();
static void run() {
BoxKt.test();
}
}