Optimization: data flow info no more stores supertypes of the variable original type as possible types (dynamic is an exception)

This commit is contained in:
Mikhail Glukhikh
2015-11-30 17:36:12 +03:00
parent 9c73502bdc
commit 408dd9bc9d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -19,6 +19,6 @@ import foo.View
fun String.gah(view:View ?) {
if (view is <!UNRESOLVED_REFERENCE!>TextView<!>)
<!DEBUG_INFO_SMARTCAST!>view<!>
view
else <!UNRESOLVED_REFERENCE!>TextView<!>() as foo.TextView
}