Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const S = struct {
- n: usize,
- fn bug(comptime self: @This()) void {
- const crash = self.*.n;
- }
- };
- pub fn main() void {
- const c = S { . n = 0};
- c.bug();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement