type MyStruct = struct { i: i32, b: bool, next: *MyStruct, } fn square_if_true(arg: MyStruct) -> i32 { if (arg.b) arg.i * arg.i else 0 }