Fix false warning about check for instance of nullable type

#KT-12269 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-04-05 16:37:02 +03:00
parent 0d6b7bb6a1
commit 90a8a164b4
6 changed files with 65 additions and 6 deletions
@@ -4,11 +4,11 @@ fun <T, S : T> test(x: T?, y: S, z: T) {
y is T
y is S
y is T<!USELESS_NULLABLE_CHECK!>?<!>
y is S<!USELESS_NULLABLE_CHECK!>?<!>
y is T?
y is S?
z is T
z is T<!USELESS_NULLABLE_CHECK!>?<!>
z is T?
<!UNCHECKED_CAST!>null as T<!>
null <!USELESS_CAST!>as T?<!>