aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-10-06 18:14:02 +0100
committergingerBill <bill@gingerbill.org>2019-10-06 18:14:02 +0100
commitd62503d031855534adddc37f84bd2e92dc2a5467 (patch)
tree23e00899d59a0269dc807b209e4ec5b302ef29c8 /examples
parent4e8a801b3504f402e06d6928e889b33c7872f88f (diff)
Change precedence for `in` and `notin` to match + - | ~
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin10
1 files changed, 1 insertions, 9 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index 2c8148501..1460bf8be 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -1190,15 +1190,7 @@ where_clauses :: proc() {
}
main :: proc() {
- x := "foobarbaz";
- i : int;
- i = strings.last_index(x, "foo"); fmt.println(i);
- i = strings.last_index(x, "bar"); fmt.println(i);
- i = strings.last_index(x, "baz"); fmt.println(i);
- i = strings.last_index(x, "asd"); fmt.println(i);
- i = strings.last_index(x, "a"); fmt.println(i);
- i = strings.last_index(x, "ba"); fmt.println(i);
- when false {
+ when true {
general_stuff();
union_type();
parametric_polymorphism();