Functions returning Nothing are indexed even when alias import is used
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
Resolve target: value-parameter val p: kotlin.Any smart-cast to kotlin.String
|
||||
----------------------------------------------
|
||||
import kotlin.Nothing as MyNothing
|
||||
|
||||
fun myNothingFun(): MyNothing = throw Exception()
|
||||
|
||||
fun foo(p: Any) {
|
||||
if (p !is String) {
|
||||
myNothingFun()
|
||||
}
|
||||
println(<caret>p.length())
|
||||
}
|
||||
Reference in New Issue
Block a user