fix precedence

This commit is contained in:
2025-04-08 20:19:48 -04:00
parent 26e7a4da4a
commit 920199c567
4 changed files with 49 additions and 17 deletions

View File

@@ -4,6 +4,12 @@ struct Test {
c: 64,
}
struct Test2 {
a: 64,
b: Test,
c: Test,
}
fn start() {
println("Helld!");
print_hex(rem(10, 7));
@@ -52,6 +58,19 @@ fn structer(test: Test) {
test.c = add(test.a, test.b);
print_dec(test.c);
println("");
let test2 = Test2 {
a: 3,
b: test,
c: test,
};
test2.c.c = 20;
print("test2.b.c: ");
print_dec(test2.b.c);
println("");
print("test2.c.c: ");
print_dec(test2.c.c);
println("");
}
fn thinger() {