diff options
Diffstat (limited to 'bootstrap')
| -rw-r--r-- | bootstrap/test2.cff | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff index ddeec15..c4aedd9 100644 --- a/bootstrap/test2.cff +++ b/bootstrap/test2.cff @@ -8,6 +8,10 @@ struct Node<T> { } } +struct Array<T, N usize> { + m [N]T, +} + def X = 7 + 2; struct Bit<T> { @@ -34,12 +38,14 @@ enum union Option<T> { extern fn main() void { let n Node<int> = {#null, 0}; let n Node<int> = {&n, 1}; + let x Array<int, 10> = {}; + let x Array<int, 0xB - 1> = x; let x int #?; x = X + 1 + Y; let const v= Value:None; - switch (v) { + switch v { case None; case Int i; i; |