| 1 | vlib/v/checker/tests/enum_op_flag_err.vv:16:24: error: only `==`, `!=`, `|`, `&`, `^` and `~` are defined on `@[flag]` tagged `enum`, use an explicit cast to `int` if needed |
| 2 | 14 | |
| 3 | 15 | fn main() { |
| 4 | 16 | println(FilePerm.read > FilePerm.write) |
| 5 | | ^ |
| 6 | 17 | println(FilePerm.write + FilePerm.exec) |
| 7 | 18 | println(FilePerm.write && FilePerm.exec) |
| 8 | vlib/v/checker/tests/enum_op_flag_err.vv:17:25: error: only `==`, `!=`, `|`, `&`, `^` and `~` are defined on `@[flag]` tagged `enum`, use an explicit cast to `int` if needed |
| 9 | 15 | fn main() { |
| 10 | 16 | println(FilePerm.read > FilePerm.write) |
| 11 | 17 | println(FilePerm.write + FilePerm.exec) |
| 12 | | ^ |
| 13 | 18 | println(FilePerm.write && FilePerm.exec) |
| 14 | 19 | |
| 15 | vlib/v/checker/tests/enum_op_flag_err.vv:18:10: error: left operand for `&&` is not a boolean |
| 16 | 16 | println(FilePerm.read > FilePerm.write) |
| 17 | 17 | println(FilePerm.write + FilePerm.exec) |
| 18 | 18 | println(FilePerm.write && FilePerm.exec) |
| 19 | | ~~~~~~~~~~~~~~ |
| 20 | 19 | |
| 21 | 20 | f := Flags.bit0 | Flags.bit1 |
| 22 | vlib/v/checker/tests/enum_op_flag_err.vv:18:28: error: right operand for `&&` is not a boolean |
| 23 | 16 | println(FilePerm.read > FilePerm.write) |
| 24 | 17 | println(FilePerm.write + FilePerm.exec) |
| 25 | 18 | println(FilePerm.write && FilePerm.exec) |
| 26 | | ~~~~~~~~~~~~~ |
| 27 | 19 | |
| 28 | 20 | f := Flags.bit0 | Flags.bit1 |
| 29 | vlib/v/checker/tests/enum_op_flag_err.vv:18:25: error: only `==`, `!=`, `|`, `&`, `^` and `~` are defined on `@[flag]` tagged `enum`, use an explicit cast to `int` if needed |
| 30 | 16 | println(FilePerm.read > FilePerm.write) |
| 31 | 17 | println(FilePerm.write + FilePerm.exec) |
| 32 | 18 | println(FilePerm.write && FilePerm.exec) |
| 33 | | ~~ |
| 34 | 19 | |
| 35 | 20 | f := Flags.bit0 | Flags.bit1 |
| 36 | vlib/v/checker/tests/enum_op_flag_err.vv:20:18: error: only `==` and `!=` are defined on `enum`, use an explicit cast to `int` if needed |
| 37 | 18 | println(FilePerm.write && FilePerm.exec) |
| 38 | 19 | |
| 39 | 20 | f := Flags.bit0 | Flags.bit1 |
| 40 | | ^ |
| 41 | 21 | println(~f) |
| 42 | 22 | } |
| 43 | vlib/v/checker/tests/enum_op_flag_err.vv:21:10: error: operator `~` can only be used with `@[flag]` tagged enums |
| 44 | 19 | |
| 45 | 20 | f := Flags.bit0 | Flags.bit1 |
| 46 | 21 | println(~f) |
| 47 | | ^ |
| 48 | 22 | } |
| 49 | |