You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A pretty usecase is a conditional return that will sometimes return nothing at all, example below. But unless you put an explicit "return nil" at the very bottom, this is caught as an error, even when setting the return value as optional with ? or as optionally nil using |nil
The text was updated successfully, but these errors were encountered:
chadvandy
changed the title
return-type-mismatch doesn't have nil/optional support
return-type-mismatch\missing-return doesn't have nil/optional support
Jun 29, 2022
A pretty usecase is a conditional return that will sometimes return nothing at all, example below. But unless you put an explicit "return nil" at the very bottom, this is caught as an error, even when setting the return value as optional with ? or as optionally nil using
|nil
The text was updated successfully, but these errors were encountered: