Add test for basic custom struct
This commit is contained in:
parent
3640da1cf2
commit
c6bed88d37
16
tests/ok/custom-struct.ac
Normal file
16
tests/ok/custom-struct.ac
Normal file
@ -0,0 +1,16 @@
|
||||
struct {
|
||||
|
||||
struct And<P, Q>(p: P, q: Q) {
|
||||
left = Fn<>() -> P {
|
||||
return p;
|
||||
};
|
||||
right = Fn<>() -> Q {
|
||||
return q;
|
||||
};
|
||||
};
|
||||
|
||||
AndLeft = Fn<P, Q>(h: And<P, Q>) -> P {
|
||||
return h.p;
|
||||
};
|
||||
|
||||
} main;
|
Loading…
x
Reference in New Issue
Block a user