-
-
Save tadeokondrak/71bb2d3fdc20eb0e30d04020a834aaf1 to your computer and use it in GitHub Desktop.
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