wraith-lang/generic.w

13 lines
187 B
OpenEdge ABL

struct Foo {
static Func<T>(t: T): T {
return t;
}
}
struct Program {
static main(): int {
x: int = 4;
y: int = Foo.Func(x);
return x;
}
}