Denis Zharkov
|
b471767e03
|
Refine smart cast check for type parameters
|
2015-08-28 18:50:25 +03:00 |
|
Denis Zharkov
|
aad977d204
|
Properly check whether nullability of receiver argument fits to parameter's nullability
It's should behave like we check isSubtype(receiverType, parameterType) + use nullability info from smart cast
#KT-1090 Fixed
|
2015-08-28 18:50:25 +03:00 |
|
Denis Zharkov
|
6ecfa6e985
|
Refine subtyping check: pay attention to corresponding supertype nullability
F: Any, T : F? => !isSubtype(T, Any)
It helps to identify upper bounds violation like in KT-7455
#KT-7455 Fixed
#KT-2924 Fixed
#KT-3015 Fixed
|
2015-08-28 18:50:25 +03:00 |
|
Denis Zharkov
|
a906be6dd7
|
Prohibit using null as a value of generic type
#KT-7350 Fixed
#KT-7736 Fixed
#KT-7485 Fixed
|
2015-08-28 18:50:25 +03:00 |
|