-
-
Couldn't load subscription status.
- Fork 385
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Zig Version
0.15.0-dev.877+0adcfd60f
ZLS Version
0.15.0-dev.247+7ab5a7ad
Client / Code Editor / Extensions
vscode
Steps to Reproduce and Observed Behavior
comptime {
var qux: Bar = undefined;
qux.baz(); // <-- not recognized as a member function
}
const Bar = struct {
pub fn baz(_: *@This(), _: type) void {}
};Expected Behavior
qux.baz should be recognized as a member function.
If the parameter in baz is changed from the literal type to an alias, e.g:
comptime {
var qux: Bar = undefined;
qux.baz(); // <-- this now works
}
const Bar = struct {
const X = type;
pub fn baz(_: *@This(), _: X) void {}
};qux.baz is now recognized.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working