We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
defmodule Point do @enforce_keys [:x, :y] defstruct [:x, :y, :z] use ExConstructor end
Error when defining module:
** (ArgumentError) the following keys must also be given when building struct ExConstructorValidatorTest.Point: [:x, :y]
Could be caused by this:
%__MODULE__{},
Perhaps create struct with Kernel.struct/2 which does not check @enforce_keys like %_{} and Kernel.struct!/2 do:
Kernel.struct/2
@enforce_keys
%_{}
Kernel.struct!/2
Kernel.struct(__MODULE__, [])
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Error when defining module:
Could be caused by this:
%__MODULE__{},
Perhaps create struct with
Kernel.struct/2
which does not check@enforce_keys
like%_{}
andKernel.struct!/2
do:The text was updated successfully, but these errors were encountered: