|
|
@ -96,11 +96,11 @@ end
|
|
|
|
|
|
|
|
|
|
|
|
let check type_role ~base ~overridden =
|
|
|
|
let check type_role ~base ~overridden =
|
|
|
|
if Nullability.equal Nullability.ThirdPartyNonnull base then
|
|
|
|
if Nullability.equal Nullability.ThirdPartyNonnull base then
|
|
|
|
(* In context of inheritance check, third party declarations in base are treated optimistically.
|
|
|
|
(* In context of inheritance check, third party declarations in base are treated optimistically.
|
|
|
|
Meaning return values are assumed [@Nullable] and params are assumed [@NonNull].
|
|
|
|
Meaning return values are assumed [@Nullable] and params are assumed [@NonNull].
|
|
|
|
This is done for compatibility reasons so existing [@Nullsafe] classes are preserved Nullsafe.
|
|
|
|
This is done for compatibility reasons so existing [@Nullsafe] classes are preserved Nullsafe.
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|
Ok ()
|
|
|
|
Ok ()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
let subtype, supertype =
|
|
|
|
let subtype, supertype =
|
|
|
|
match type_role with
|
|
|
|
match type_role with
|
|
|
|