[FIR2IR] Insert implicit coercion to unit in adapted function references

^KT-60260 Fixed
This commit is contained in:
Sergej Jaskiewicz
2024-01-11 16:21:33 +01:00
committed by Space Team
parent 99d5ee4db8
commit a8914acb68
30 changed files with 26 additions and 1201 deletions
@@ -33,7 +33,7 @@ fun withVarargOfInt(vararg xs: Int): String {
fun testAdaptedCR() {
useVararg(foos = [{ // BLOCK
local fun withVarargOfInt(p0: Int) {
withVarargOfInt(xs = [p0])
withVarargOfInt(xs = [p0]) /*~> Unit */
}
::withVarargOfInt /*-> IFoo */