reid-llvm/examples/generics.reid
2025-08-25 19:08:10 +03:00

12 lines
190 B
Plaintext

// Arithmetic, function calls and imports!
fn test<T>(value: T) -> T {
return value;
}
fn main() -> u32 {
let value = 0b110;
let other = 0o17;
return value * other + 7 * -value;
}