Skip to content
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

type resolution based on call references. #1105

Open
vesim987 opened this issue Apr 2, 2023 · 0 comments
Open

type resolution based on call references. #1105

vesim987 opened this issue Apr 2, 2023 · 0 comments
Labels
enhancement New feature or request priority:low Low priority item

Comments

@vesim987
Copy link
Contributor

vesim987 commented Apr 2, 2023

Feature similar to #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);
}
@vesim987 vesim987 added the enhancement New feature or request label Apr 2, 2023
@SuperAuguste SuperAuguste added bug Something isn't working priority:low Low priority item labels Apr 3, 2023
@Techatrix Techatrix removed the bug Something isn't working label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:low Low priority item
Projects
None yet
Development

No branches or pull requests

3 participants