Refine smart cast check for type parameters

This commit is contained in:
Denis Zharkov
2015-08-25 14:42:06 +03:00
parent aad977d204
commit b471767e03
5 changed files with 78 additions and 2 deletions
@@ -28,9 +28,8 @@ class A<T : CharSequence?, E1 : T, E2: T?> {
t = <!TYPE_MISMATCH!>y<!>
// Could be smart-cast
if (y != null) {
t = <!TYPE_MISMATCH!>y<!>
t = <!DEBUG_INFO_SMARTCAST!>y<!>
}
if (tN != null) {