Created
July 17, 2018 16:56
-
-
Save lmb/cc1f03437b78be4be65543c7ba57875c to your computer and use it in GitHub Desktop.
zig generics segfault
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn Generic(comptime len: usize) var { | |
return struct { | |
stack: [len]u8, | |
}; | |
} | |
const Thing = Generic(1); | |
test "crash" { | |
Thing.bloop(); | |
} |
Author
lmb
commented
Jul 17, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment