Functions returning Nothing are indexed even when alias import is used

This commit is contained in:
Valentin Kipyatkov
2015-03-31 18:30:47 +03:00
parent 1789907740
commit c54541b269
6 changed files with 48 additions and 11 deletions
@@ -0,0 +1,10 @@
import kotlin.Nothing as MyNothing
fun myNothingFun(): MyNothing = throw Exception()
fun foo(p: Any) {
if (p !is String) {
myNothingFun()
}
println(<caret>p.length())
}