-
-
Save anonymous/2af51c0ea79f62ec565546e9619ef470 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
fn get_type(comptime T: type) type { return T; } | |
pub fn main() void | |
{ | |
@compileLog(@typeId(get_type(Point))); // | TypeId.Struct | |
@compileLog(@typeId(@typeOf(Point))); // | TypeId.Type | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment