Generate line numbers for function call parameters

Before this fix line numbers for function call arguments were not generated,
 so if argument was on another line than function call it was
 impossible to stop on argument line during debugging.
 Now line number for each argument is generated if necessary
 (another line than function call line).

 #KT-17144 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-04-16 15:05:47 +02:00
parent b60efab62e
commit 708bfdbd5f
11 changed files with 51 additions and 34 deletions
@@ -0,0 +1,18 @@
package kt17144
fun main(args: Array<String>) {
val a = true
1 + when (a) {
true -> {
println("foo")
//Breakpoint!
1
}
else -> {
println("bar")
2
}
}
}
//RESUME: 1