Pass data flow info from '::' expressions, fix expected type

This commit is contained in:
Alexander Udalov
2016-06-06 14:31:23 +03:00
parent d8db769823
commit 526a64dc36
6 changed files with 55 additions and 4 deletions
@@ -0,0 +1,13 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
import kotlin.reflect.KClass
fun f1(x: String?): String {
x!!::hashCode
return <!DEBUG_INFO_SMARTCAST!>x<!>
}
fun f2(y: String?): String {
val f: KClass<*> = (y ?: return "")::class
return <!DEBUG_INFO_SMARTCAST!>y<!>
}