Fix JS source maps for "is" and "in" clauses in when expression

This commit is contained in:
Alexey Andreev
2017-05-10 20:44:45 +03:00
parent 9692c02f6e
commit 6ad991adfb
5 changed files with 47 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
fun box() {
when (foo()) {
in 2..5 ->
println("A")
!in 100..200 ->
println("B")
in bar() ->
println("C")
}
}
fun foo(): Int = 23
fun bar(): IntRange = 1000..2000
// LINES: 2 2 3 4 5 6 7 8 12 14