From e9543de5ab1de08a452de4b9df705c43aa9ff6ac Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 19 Aug 2022 10:41:25 +0200 Subject: templates --- bootstrap/test2.cff | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bootstrap') 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 { } } +struct Array { + m [N]T, +} + def X = 7 + 2; struct Bit { @@ -34,12 +38,14 @@ enum union Option { extern fn main() void { let n Node = {#null, 0}; let n Node = {&n, 1}; + let x Array = {}; + let x Array = x; let x int #?; x = X + 1 + Y; let const v= Value:None; - switch (v) { + switch v { case None; case Int i; i; -- cgit v1.2.3