UAST properly handles string "when conditions" in lazy parent (KT-20709) (#1338)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
val a = readLine()
|
||||
|
||||
val b = when(a) {
|
||||
"abc" -> 1
|
||||
"def", "ghi" -> 2
|
||||
else -> 3
|
||||
}
|
||||
|
||||
when(a) {
|
||||
"abc1" -> println(1)
|
||||
"def1", "ghi1" -> println(2)
|
||||
}
|
||||
Reference in New Issue
Block a user