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,8 @@
fun test(b: Boolean) {
var fn: () -> String
<caret>when (b) {
true -> fn = { "foo" }
else -> fn = { "bar" }
}
}