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
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_STDLIB
|
||||
import kotlin.reflect.KFunction1
|
||||
|
||||
fun foo(action: KFunction1<String, Int>): Int {
|
||||
val <!UNUSED_VARIABLE!>localAction<!> = action
|
||||
|
||||
return localAction("hello")
|
||||
}
|
||||
Reference in New Issue
Block a user