peon/tests/generics3.pn

8 lines
132 B
Plaintext

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