From aa156e4bfce1cce0042b042317ac7213eb8f428b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 31 Dec 2018 15:51:53 +0000 Subject: [PATCH] Vet demo.odin --- examples/demo/demo.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 9c64ea733..ba6e71f44 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -756,6 +756,8 @@ complete_switch :: proc() { case D: fmt.println("D"); case: fmt.println("?"); } + + _ = b; } { // union Foo :: union {int, bool}; @@ -774,6 +776,7 @@ cstring_example :: proc() { Y :: string(X); w := W; + _ = w; x: cstring = X; y: string = Y; z := string(x); @@ -815,7 +818,6 @@ bit_set_type :: proc() { d: Days; d = {Sunday, Monday}; - x := Tuesday; e := d | WEEKEND; e |= {Monday}; fmt.println(d, e);