When overriding a function with a nullable return ...
# getting-started
m
When overriding a function with a nullable return value, is there any way to declare the return value is always null (in the signature)?
n
not from a types perspective but you might be able to use method contracts for that
👍 1
m
I guess the other option would be to convert to using a sealed class return type (non-null)
e
Nothing?
can only possibly be
null
👍 3