KT-64832 [FIR] Add more testData for invoke on local variables

Covers:
- suspend functional local variables
- overloads
- custom types with invoke operator
This commit is contained in:
Roman Golyshev
2024-01-09 13:17:21 +01:00
committed by Space Team
parent 2c90f1327d
commit 0cad4c9632
16 changed files with 259 additions and 0 deletions
@@ -0,0 +1,13 @@
FILE: invokeOverload2.kt
public final fun foo(): R|kotlin/Unit| {
lval x: R|(kotlin/String) -> kotlin/Unit| = fun <anonymous>(s: R|kotlin/String|): R|kotlin/Unit| <inline=Unknown> {
}
local final fun nested(): R|kotlin/Unit| {
lval x: R|(kotlin/Int) -> kotlin/Unit| = fun <anonymous>(i: R|kotlin/Int|): R|kotlin/Unit| <inline=Unknown> {
}
R|<local>/x|.R|SubstitutionOverride<kotlin/Function1.invoke: R|kotlin/Unit|>|(Int(10))
}
}