Files
kotlin/idea/testData/resolve/partialBodyResolve/IfNotIsMyErrorWithAliasImport.dump
Valentin Kipyatkov 4cd7193047 KT-11018 Ctrl + Mouse Hover shows a var as val
#KT-11018 Fixed
2016-02-13 10:20:20 +03:00

13 lines
312 B
Plaintext
Vendored

Resolve target: value-parameter 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())
}