If-then-else statements & correct line numbers

#KT-3036 Fixed
This commit is contained in:
Alexander Udalov
2012-11-22 15:44:18 +04:00
parent 8564c20baa
commit 99a908e8fe
6 changed files with 43 additions and 5 deletions
@@ -0,0 +1,9 @@
fun z(b: Boolean) {}
fun foo(b: Boolean) {
if (b) {
z(b)
} else {
z(b)
}
}
@@ -0,0 +1,5 @@
fun foo(b: Boolean) {
if (b) {
} else {
}
}
@@ -0,0 +1,15 @@
fun foo() {
if (0 < 1) {
System.out?.println()
} else {
System.out?.println()
}
val b = if (1 < 2) {
System.out?.println()
} else {
System.out?.println()
}
}
// 2 3 5 8 9 11 8