-
-
Save fengb/6de712965cb752ba72478f5cfb3870cb 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 Field(comptime number: comptime_int, comptime T: type) type { | |
return @setDecl(type, "number", number); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment