UAST properly handles string "when conditions" in lazy parent (KT-20709) (#1338)

This commit is contained in:
xiexed
2017-10-11 16:16:15 +03:00
committed by Dmitry Jemerov
parent 88595e1a58
commit 5c2962e195
6 changed files with 116 additions and 4 deletions
+12
View File
@@ -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)
}