All checks were successful
CI / ci (ReleaseSmall, ubuntu-latest) (pull_request) Successful in 2m40s
CI / ci (ReleaseFast, ubuntu-latest) (pull_request) Successful in 2m44s
CI / ci (ReleaseSafe, ubuntu-latest) (pull_request) Successful in 2m43s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 4m10s
CI / ci (ReleaseFast, ubuntu-latest) (push) Successful in 2m29s
CI / ci (ReleaseSmall, ubuntu-latest) (push) Successful in 2m26s
CI / ci (ReleaseSafe, ubuntu-latest) (push) Successful in 2m32s
CI / ci (Debug, ubuntu-latest) (push) Successful in 3m51s
12 lines
168 B
Plaintext
12 lines
168 B
Plaintext
sub = macro [T] (a: T, b: T) T
|
|
{
|
|
return a - b;
|
|
}
|
|
|
|
[export] main = fn [cc(c)] () s32
|
|
{
|
|
>a = sub[s32](1, 1);
|
|
>b = sub[u8](2, 2);
|
|
return a + #extend(b);
|
|
}
|