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
ZLS shows autocomplete results for the return type in the function definition instead of the current type in the expression.
Something like this should reproduce it:
constFirst=enum { abc, def };
constSecond=enum { foo, bar };
pubfnto(this: First) Second {
returnswitch (this) {
.abc=>.foo,
// always shows `Second` even when the current expression should filter to `First`
};
}
Expected Behavior
The list should filter to the correct type
Actual Behavior
It autocompletes the wrong type
The text was updated successfully, but these errors were encountered:
Zig Version
0.11.0-dev.2571+31738de28
Zig Language Server Version
HEAD
Steps to Reproduce
ZLS shows autocomplete results for the return type in the function definition instead of the current type in the expression.
Something like this should reproduce it:
Expected Behavior
The list should filter to the correct type
Actual Behavior
It autocompletes the wrong type
The text was updated successfully, but these errors were encountered: