[NI] Resolve function literals in block as lambda expression

This commit is contained in:
Mikhail Zarechenskiy
2017-08-17 16:18:43 +03:00
committed by Stanislav Erokhin
parent 08964006de
commit c45f86a2fc
6 changed files with 48 additions and 2 deletions
@@ -0,0 +1,8 @@
fun box(): String {
val p: (String) -> Boolean = if (true) {
{ true }
} else {
{ true }
}
return "OK"
}