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,18 @@
fun f(a: Int): Int {
fun localFun() {
if (a > 5) {
return
}
<caret>throw Error()
}
if (a < 5) {
return 1
}
else {
throw Exception()
}
}
//HIGHLIGHTED: return
//HIGHLIGHTED: throw Error()