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
+11
View File
@@ -0,0 +1,11 @@
fun f(a: Int): Int {
if (a < 5) {
<caret>return 1
}
else {
throw Error()
}
}
//HIGHLIGHTED: return 1
//HIGHLIGHTED: throw Error()