-
-
Save anonymous/44e529357cfe608096aa5005a8f02416 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
const Test = struct | |
{ | |
element_type: type, | |
pub fn get(comptime self: &const Test, instance: ptr_to(self.element_type)) void {} | |
}; | |
fn ptr_to(comptime element_type: type) type { return &element_type; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment