-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Redefining recursive type fails #21816
Comments
Seems genuinely ambiguous which |
I don't think it's actually ambiguous since only one thing can have the name |
What is the solution for this one? |
You can wrap the definition in a module and reload the module, which lets you do this. Redefining a recursive definition in the same module does not yet work. |
I'd like to throw in my support for this issue. Being able to redefine structs without getting this error would be useful in Jupyter notebooks, where a user is often prototyping code and changing definitions. I am running into this issue myself. |
It would certainly be nice—I don't think there's any opposition. It's just a low priority annoyance that no one has had time or sufficient motivation to work on. If anyone wants to try, they're welcome to! |
Need this here. |
Redefining non-parametric, recursive types fails:
The text was updated successfully, but these errors were encountered: