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:
committed by
Space Team
parent
6951efe63c
commit
2c90f1327d
Vendored
+5
@@ -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))
|
||||
}
|
||||
Reference in New Issue
Block a user