KT-2190 Highlight usages invoked on "throw" or "return" should highlight all exit-points of function

#KT-2190 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-04-02 22:38:12 +03:00
parent 86f91ade1a
commit 33e34c759d
17 changed files with 413 additions and 0 deletions
@@ -0,0 +1,15 @@
fun f(a: Int): Int {
fun localFun() {
return
}
if (a < 5) {
return 1
}
else {
<caret>return 2
}
}
//HIGHLIGHTED: return 1
//HIGHLIGHTED: return 2