aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-24 11:26:37 +0200
committerlemon <lsof@mailbox.org>2022-08-24 11:26:53 +0200
commit333728ad37cae80f3ab53aaeb2c98352eb787b5f (patch)
treeded570ab8d21ffc1a9ec6c29f8102771e4d8729c /bootstrap
parent82e537ceec82c4956710e4ef2d08f73fad8bfa01 (diff)
enum ini
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/test2.cff34
1 files changed, 1 insertions, 33 deletions
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<int>:Some(3);
- let x = Option<f32>:None;
-
- printf("n %d\n", n.value);
- printf("n link %d\n", n.link.value);
-
- let x Node<f32> = {};
- n->ok();
- x->ok();
-
- Bit<i32>:foo(3);
- Bit<i64>:foo(3);
+ v = :Int(1 + x);
}