-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lenient mode errors for returning nullable values from null-unmarked methods with a type-parameter return type #172
Comments
(76b33c9#diff-ce82a59b06d0d82bfc6d06835d1b06ac15619bc3a71617d32189d041f02ca9c0R921 came to mind because I remembered seeing |
I've realized that my earlier testing was incomplete. And it turns out that this problem comes up more when I test fully. On the bright side, my testing with #175 (well, with my variant of it) does appear to eliminate those errors. So we still look to be in good shape. |
(Or, come to think of it, I might be able to mostly work around this one if necessary. But I'm not sure, and it would be at least a little work.) |
Fixed by #175. |
At the current main-eisop (76b33c9) and still with #171:
This should be allowed because the return type should be read as
E*
(i.e.,E
with unspecified nullness), which permitsnull
in lenient mode.Since this error comes up only in null-unmarked code, we should be OK with suppressing the small number of times that it occurs. Still, I'm filing it for tracking.
The text was updated successfully, but these errors were encountered: