/loops.zig Secret
Created
January 26, 2020 03:59
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 const T = struct { | |
other: *T, | |
}; | |
pub const A = struct { | |
pub const constant: T = T{ .other = &B.constant }; | |
}; | |
pub const B = struct { | |
pub const constant: T = T{ .other = &A.constant }; | |
}; | |
test "loop" { | |
const a = A.constant; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment