From 333728ad37cae80f3ab53aaeb2c98352eb787b5f Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 24 Aug 2022 11:26:37 +0200 Subject: enum ini --- bootstrap/test2.cff | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff index d267036..0c546bb 100644 --- a/bootstrap/test2.cff +++ b/bootstrap/test2.cff @@ -45,37 +45,5 @@ extern fn main() void { x = X + 1 + Y; let const v= Value:None; - switch v { - case None; - case Int i; - i; - case Flo *f; - let x f32 = *f; - } - let t = v.#tag; - let i = v.Int; - // v.#tag++; - - #'outer for let i = 0; i++ < 10; { - printf("%d\n", i); - while #t { - if i < 2 { - continue #'outer; - } - break #'outer; - } - } - - let x = Option:Some(3); - let x = Option:None; - - printf("n %d\n", n.value); - printf("n link %d\n", n.link.value); - - let x Node = {}; - n->ok(); - x->ok(); - - Bit:foo(3); - Bit:foo(3); + v = :Int(1 + x); } -- cgit v1.2.3