Support move on depth 2

This commit is contained in:
Michael Bogdanov
2014-10-06 17:05:51 +04:00
parent e6c98078b3
commit 7be48c7336
3 changed files with 20 additions and 2 deletions
@@ -0,0 +1,6 @@
fun f(b : Long.(Long)->Long) = 1L?.b(2L)
fun box(): String {
val x = f { this + it }
return if (x == 3L) "OK" else "fail $x"
}