diff options
| author | gingerBill <bill@gingerbill.org> | 2018-12-31 15:51:53 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-12-31 15:51:53 +0000 |
| commit | aa156e4bfce1cce0042b042317ac7213eb8f428b (patch) | |
| tree | 24330f299639954744880d8c0b0e78c98a0a3597 /examples | |
| parent | 1c9656aedb3040b7f08161ece138ce0fe33c4699 (diff) | |
Vet demo.odin
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 4 |
1 files changed, 3 insertions, 1 deletions
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); |