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

Compiler crash when calling @typeInfo() on a struct with a comptime parameter in an fn def #1009

Closed
tgschultz opened this issue May 12, 2018 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@tgschultz
Copy link
Contributor

test "typeInfo with comptime parameter in struct fn def" {
    const S = struct {
        pub fn func(comptime x: f32) void {}
    };
    comptime var info = @typeInfo(S);
}
@andrewrk andrewrk added this to the 0.3.0 milestone May 12, 2018
@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label May 12, 2018
@Hejsil Hejsil closed this as completed in 2b3af4e May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants