zls
zls copied to clipboard
`type` resolution based on call references.
Feature similar to https://github.com/zigtools/zls/pull/1067 but for type arguments.
Simple repro:
const Bar = struct {
x: usize,
fn baz(self: @This()) void {
_ = self;
}
};
fn Foo(comptime Type: type) void {
const x = Type{ .x = 2 };
x.<complete>;
}
pub fn main() void {
Foo(Bar);
}