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
If you use more complex branching, every possibility will be added, resulting in even more duplicates
Expected Behavior
I would expect duplicates to be filtered out.
By a duplicate I mean a declaration of matching name and type. I believe there is merit in keeping declarations of matching name but different type as, barring more sophisticated type evaluation, an overview of all the available types is better than a single wrong one.
Alternatively, "unknown" or the most general type (i32 and u8 => Int, or fn () void and fn (bool) !Bar => Fn) could be specified instead
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
mbartelsm
changed the title
ZLS intellisense suggests duplicate declarations for complex types
ZLS intellisense suggests duplicate declarations in complex namespace types
May 9, 2024
Zig Version
0.12.0
Zig Language Server Version
0.12.0
Client / Code Editor / Extensions
VSCode with Zig extension
Steps to Reproduce and Observed Behavior
The following code
Will produce duplicate suggestions.
If you use more complex branching, every possibility will be added, resulting in even more duplicates
Expected Behavior
I would expect duplicates to be filtered out.
By a duplicate I mean a declaration of matching name and type. I believe there is merit in keeping declarations of matching name but different type as, barring more sophisticated type evaluation, an overview of all the available types is better than a single wrong one.
Alternatively, "unknown" or the most general type (
i32
andu8
=>Int
, orfn () void
andfn (bool) !Bar
=>Fn
) could be specified insteadRelevant log output
No response
The text was updated successfully, but these errors were encountered: