FIR2IR: use invariant projections for SAM_CONVERSION types

This commit is contained in:
Mikhail Glukhikh
2021-02-10 13:04:53 +03:00
parent 67671afab4
commit 7050af9b79
14 changed files with 125 additions and 14 deletions
+14
View File
@@ -0,0 +1,14 @@
// WITH_RUNTIME
// FULL_JDK
// FILE: Fun.java
public interface Fun {
String invoke(String string);
}
// FILE: test.kt
fun box(): String {
val map = mutableMapOf<Fun, String>()
val fn = Fun { TODO() }
return map.computeIfAbsent(fn, { "OK" })
}