peon/tests/generics3.pn

8 lines
103 B
Plaintext

# Another test for generic functions
import std;
fn sum[T: any](a: T, b: T): T {
return a + b;
}