Lift Assignment: process lambda assignments in when correctly
So #KT-23346 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
7438d12ad7
commit
89981ecbbb
@@ -0,0 +1,10 @@
|
||||
fun test(i: Int) {
|
||||
var fn: () -> String
|
||||
|
||||
<caret>if (i == 1)
|
||||
fn = { "foo" }
|
||||
else if (i == 2)
|
||||
fn = { "bar" }
|
||||
else
|
||||
fn = { "baz" }
|
||||
}
|
||||
Reference in New Issue
Block a user