You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These numbers are indices into the compiler's InternPool.
Expected Behavior
The names ideally should not depend on details of compiler internals. We should aim to generate descriptive names.
If it turns out there isn't a good alternative way to generate unique names, then at the very least, these type names with random numbers in them shouldn't be printed in compile errors which mention the types. It would be relatively easy for us to give the type a different name when printing it.
#24115 tracks missing test coverage which was deleted because it depended on these names.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Zig Version
0.15.0-dev.762+3208c80f2
Steps to Reproduce and Observed Behavior
Declare a type in a non-trivial way and look at its name:
Or, instantiate a generic function and look at its name in the binary:
These numbers are indices into the compiler's
InternPool
.Expected Behavior
The names ideally should not depend on details of compiler internals. We should aim to generate descriptive names.
If it turns out there isn't a good alternative way to generate unique names, then at the very least, these type names with random numbers in them shouldn't be printed in compile errors which mention the types. It would be relatively easy for us to give the type a different name when printing it.
#24115 tracks missing test coverage which was deleted because it depended on these names.
The text was updated successfully, but these errors were encountered: