Analyze Data Flow: Support lambdas/anonymous functions
#KT-11994 In Progress
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// FLOW: IN
|
||||
|
||||
fun foo(f: (Int) -> Int): Int {
|
||||
val x = f
|
||||
return x(1)
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val <caret>y = foo { it }
|
||||
}
|
||||
Reference in New Issue
Block a user