reid-llvm/examples/generics.reid
2025-08-25 20:04:30 +03:00

9 lines
134 B
Plaintext

// Arithmetic, function calls and imports!
fn test<T>(value: T) -> T {
return value;
}
fn main() -> u32 {
return test<u32>(5);
}