Inline function: handle callable references through lambdas

This commit is contained in:
Mikhail Glukhikh
2017-03-28 20:25:24 +03:00
parent 75bb599991
commit 93b624fdbe
6 changed files with 58 additions and 18 deletions
@@ -0,0 +1,6 @@
fun <caret>foo(x: Int) = x
val y = ::foo
fun bar(x: Int) = foo(x * x)
@@ -0,0 +1,3 @@
val y = { x: Int -> x }
fun bar(x: Int) = x * x