KT-61032 [FIR] Add testData for invoke on K*Function* local variables

N.B. Method references currently also implicitly have such type
This commit is contained in:
Roman Golyshev
2024-01-09 13:15:41 +01:00
committed by Space Team
parent 6951efe63c
commit 2c90f1327d
10 changed files with 115 additions and 0 deletions
@@ -0,0 +1,5 @@
FILE: invokeKFunction.kt
public final fun foo(action: R|kotlin/reflect/KFunction1<kotlin/String, kotlin/Int>|): R|kotlin/Int| {
lval localAction: R|kotlin/reflect/KFunction1<kotlin/String, kotlin/Int>| = R|<local>/action|
^foo R|<local>/localAction|.R|SubstitutionOverride<kotlin/reflect/KFunction1.invoke: R|kotlin/Int|>|(String(hello))
}