Lift Assignment: process lambda assignments in when correctly

So #KT-23346 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-03-24 16:47:40 +03:00
committed by Mikhail Glukhikh
parent 7438d12ad7
commit 89981ecbbb
12 changed files with 138 additions and 2 deletions
@@ -0,0 +1,11 @@
fun test(i: Int) {
var fn: () -> String
<caret>if (i == 1) {
fn = { "foo" }
} else if (i == 2) {
fn = { "bar" }
} else {
fn = { "baz" }
}
}