-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Multiple type definitions appear for same type #1041
Labels
bug
Something isn't working
Comments
Different but related issue with const abc = if (1 == 1) SomeStruct else null; Where it just assumes |
Don't you mean |
#1067 will also have this problem for now. The fix is using a |
Same issue on: const lib = if (shared)
b.addSharedLibrary(.{
.name = "winpthreads",
.optimize = optimize,
.target = target,
.version = .{
.major = 1,
.minor = 0,
.patch = 0,
},
})
else
b.addStaticLibrary(.{
.name = "winpthreads",
.optimize = optimize,
.target = target,
.version = .{
.major = 1,
.minor = 0,
.patch = 0,
},
}); The auto-completion mechanism stops working. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.11.0-dev.1863+a63134a4a
Zig Language Server Version
latest
Steps to Reproduce
Code:
#1031 is a very nice improvement. It looks like there's a missing edgecase where when values branch but have the same type, they appear as two distinct types (both return
ZigString
here). Possibly related to that, I've noticed worse performance today compared to two days ago.Expected Behavior
Show one type definition per unique type
Actual Behavior
Shows duplicate results
The text was updated successfully, but these errors were encountered: