Created
January 12, 2021 10:27
-
-
Save mikdusan/db34637466a312898a9eca74a4e60053 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 isComptime() bool { | |
var t: bool = true; | |
const x = if (t) @as(u7,0) else @as(u8,0); | |
return @TypeOf(x) == u7; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment