types example

main
Jordan Orelli 4 years ago
parent e2f77230a6
commit 905ed28663

@ -0,0 +1,11 @@
const std = @import("std");
const assert = std.debug.assert;
test "types are values" {
const T1 = u8;
const T2 = bool;
assert(T1 != T2);
const x: T2 = true;
assert(x);
}
Loading…
Cancel
Save