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
Please put an X between the brackets as you perform the following steps:
For nested inductive types, any nested-inductive arguments to the constructors can't be assigned a default value.
inductive Foo | mk (x : Array Foo := #[])
Expected behavior: It should compile, and Foo.mk should have a default value for x.
Foo.mk
x
Actual behavior: An error is thrown:
application type mismatch optParam _nested.Array_1 #[] argument has type Array Foo but function has type _nested.Array_1 → Type
Reproduced on
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered:
duplicate of #4824
Sorry, something went wrong.
No branches or pull requests
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
For nested inductive types, any nested-inductive arguments to the constructors can't be assigned a default value.
Steps to Reproduce
Expected behavior: It should compile, and
Foo.mk
should have a default value forx
.Actual behavior: An error is thrown:
Versions
Reproduced on
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: