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

Clash of constructor names in recursive bundle #1274

Closed
Tracked by #1199
maximebuyse opened this issue Jan 28, 2025 · 1 comment
Closed
Tracked by #1199

Clash of constructor names in recursive bundle #1274

maximebuyse opened this issue Jan 28, 2025 · 1 comment
Labels
engine Issue in the engine

Comments

@maximebuyse
Copy link
Contributor

mod a {
    pub fn f() {super::b::g()}
    struct A();
}

mod b {
    pub fn g() {super::a::f()}
    struct A();
}

Open this code snippet in the playground

Here the A types get renamed but their constructors do not:

type t_A_31610316 = | A : t_A_31610316

type t_A_213036179 = | A : t_A_213036179

which gives the following error:

* Error 47 at Playground.A.Cyclic_bundle_973328853.fst(8,23-8,24):
  - Duplicate top-level names [Playground.A.Cyclic_bundle_973328853.A]
  - Previously declared at Playground.A.Cyclic_bundle_973328853.fst(6,22-6,23)
@maximebuyse maximebuyse added the engine Issue in the engine label Jan 28, 2025
@W95Psp
Copy link
Collaborator

W95Psp commented Jan 30, 2025

This was fixed by #1199

@W95Psp W95Psp closed this as completed Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine
Projects
None yet
Development

No branches or pull requests

2 participants