-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Allow using protocol list implementation on improper lists #14366
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
Conversation
@@ -483,7 +486,7 @@ defmodule Module.Types.IntegrationTest do | |||
dynamic( | |||
%Date{} or %DateTime{} or %NaiveDateTime{} or %Time{} or %URI{} or %Version{} or | |||
%Version.Requirement{} | |||
) or atom() or binary() or float() or integer() or list(term()) | |||
) or atom() or binary() or empty_list() or float() or integer() or non_empty_list(term(), term()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should format this as maybe_improper_list(term(), term())
instead (and make a public helper for it in descr)
} | ||
|
||
assert_no_warnings(files, consolidate_protocols: true) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, if we can add this to one of the existing tests, it would be better, as they can be expensive!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find the perfect candidate, but maybe we can group regressions here under a single module, replacing the test descriptions by comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!
5a624f7
to
d097960
Compare
Nice, will merge this one and rebase+fix #14488 |
Tentative fix for #14365