Inline function: handle callable references through lambdas
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
|
||||
fun foo(x: Int) = x
|
||||
|
||||
val y = ::<caret>foo
|
||||
@@ -0,0 +1 @@
|
||||
val y = { x: Int -> x }
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
fun <caret>foo(x: Int) = x
|
||||
|
||||
val y = ::foo
|
||||
|
||||
fun bar(x: Int) = foo(x * x)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
val y = { x: Int -> x }
|
||||
|
||||
fun bar(x: Int) = x * x
|
||||
Reference in New Issue
Block a user