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

duplicate definition names not detected in mutual block #6694

Closed
3 tasks done
cppio opened this issue Jan 19, 2025 · 0 comments · Fixed by #6939
Closed
3 tasks done

duplicate definition names not detected in mutual block #6694

cppio opened this issue Jan 19, 2025 · 0 comments · Fixed by #6939
Labels
bug Something isn't working P-medium We may work on this issue if we find the time

Comments

@cppio
Copy link
Contributor

cppio commented Jan 19, 2025

Prerequisites

Please put an X between the brackets as you perform the following steps:

Steps to Reproduce

mutual

def foo := ()

def foo := ()

end

Expected behavior: An error saying that foo is defined twice.

Actual behavior: No error.

Versions

Lean 4.16.0-nightly-2025-01-18
Lean 4.0.0-m1

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

@cppio cppio added the bug Something isn't working label Jan 19, 2025
@leanprover-bot leanprover-bot added the P-medium We may work on this issue if we find the time label Jan 28, 2025
github-merge-queue bot pushed a commit that referenced this issue Feb 5, 2025
This PR adds error messages for `inductive` declarations with
conflicting constructor names and `mutual` declarations with conflicting
names.

Closes #6694.
@jrr6 jrr6 closed this as completed in #6939 Feb 5, 2025
luisacicolini pushed a commit to opencompl/lean4 that referenced this issue Feb 24, 2025
…over#6939)

This PR adds error messages for `inductive` declarations with
conflicting constructor names and `mutual` declarations with conflicting
names.

Closes leanprover#6694.
luisacicolini pushed a commit to opencompl/lean4 that referenced this issue Feb 25, 2025
…over#6939)

This PR adds error messages for `inductive` declarations with
conflicting constructor names and `mutual` declarations with conflicting
names.

Closes leanprover#6694.
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