Skip to content
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

Remove warning about @Nullable var args #296

Merged
merged 1 commit into from Apr 1, 2019

Conversation

lazaroclapp
Copy link
Collaborator

Unfortunatelly, it is commong to have wrapper functions that take
@nullable var args and e.g. pass them immediately to a formatting/logging
third-party method that also takes @nullable var args safely.

Because of this, erroring out on @Nullable T args... can cause a worse
experience than simply letting the local array args be considered a
@Nullable array. I am not too happy with current error reporting after
reverting this change, but the alternative blocks too many valid method
declarations.

Unfortunatelly, it is commong to have wrapper functions that take
@nullable var args and e.g. pass them immediately to a formatting/logging
third-party method that also takes @nullable var args safely.

Because of this, erroring out on `@Nullable T args...` can cause a worse
experience than simply letting the local array `args` be considered a
`@Nullable` array. I am not too happy with current error reporting after
reverting this change, but the alternative blocks too many valid method
declarations.
@lazaroclapp
Copy link
Collaborator Author

cc: @ZacSweers (Skipping 0.7.0 internally due to this, unfortunately)

@lazaroclapp lazaroclapp merged commit b99e4cf into master Apr 1, 2019
@lazaroclapp lazaroclapp deleted the lazaro_revert_varargs_warning branch April 1, 2019 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants