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
@@ -0,0 +1,11 @@
fun box(): String {
val map: MutableMap<Fun, String> = mutableMapOf<Fun, String>()
val fn: Fun = local fun <anonymous>(it: String?): String? {
return TODO()
}
/*-> Fun */
return map.computeIfAbsent(p0 = fn, p1 = local fun <anonymous>(it: Fun?): String? {
return "OK"
}
/*-> @FlexibleNullability Function<Fun?, String?> */)
}