Don't add double linenumber when return expression is absent (KT-18949)

#KT-18949 Fixed
This commit is contained in:
Nikolay Krasko
2017-07-15 16:21:51 +03:00
parent a41c9d2476
commit d282f14eac
5 changed files with 31 additions and 4 deletions
@@ -0,0 +1,19 @@
fun foo() {
bar {
nop()
baz()
}
}
inline fun bar(f: () -> Unit) {
nop()
f()
}
inline fun baz() {
nop()
}
fun nop() {}
// 2 20 21 3 4 25 26 5 27 6 9 10 11 14 15 17