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

Recursive structure fields silently ignore default values #6140

Closed
Kha opened this issue Nov 20, 2024 · 0 comments · Fixed by #6173
Closed

Recursive structure fields silently ignore default values #6140

Kha opened this issue Nov 20, 2024 · 0 comments · Fixed by #6173
Labels
bug Something isn't working P-medium We may work on this issue if we find the time

Comments

@Kha
Copy link
Member

Kha commented Nov 20, 2024

structure RecS where
  n : Nat
  recS : Option RecS := none

/-- error: fields missing: 'recS' -/
#guard_msgs in
#check ({ n := 0 } : RecS)
@Kha Kha added the bug Something isn't working label Nov 20, 2024
@leanprover-bot leanprover-bot added the P-medium We may work on this issue if we find the time label Nov 22, 2024
kmill added a commit to kmill/lean4 that referenced this issue Nov 22, 2024
github-merge-queue bot pushed a commit that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P-medium We may work on this issue if we find the time
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants