| 1 | vlib/v/checker/tests/unnecessary_parenthesis.vv:2:5: notice: condition is always true |
| 2 | 1 | fn main() { |
| 3 | 2 | if (1 == 1) { |
| 4 | | ~~~~~~~~ |
| 5 | 3 | println('yeay') |
| 6 | 4 | } else if (1 == 2) { |
| 7 | vlib/v/checker/tests/unnecessary_parenthesis.vv:4:12: notice: condition is always false |
| 8 | 2 | if (1 == 1) { |
| 9 | 3 | println('yeay') |
| 10 | 4 | } else if (1 == 2) { |
| 11 | | ~~~~~~~~ |
| 12 | 5 | println("oh no :'(") |
| 13 | 6 | } else if (1 == 3) { |
| 14 | vlib/v/checker/tests/unnecessary_parenthesis.vv:6:12: notice: condition is always false |
| 15 | 4 | } else if (1 == 2) { |
| 16 | 5 | println("oh no :'(") |
| 17 | 6 | } else if (1 == 3) { |
| 18 | | ~~~~~~~~ |
| 19 | 7 | println("what's wrong with physics ????") |
| 20 | 8 | } |
| 21 | vlib/v/checker/tests/unnecessary_parenthesis.vv:2:2: warning: unnecessary `()` in `if` condition, use `if expr {` instead of `if (expr) {`. |
| 22 | 1 | fn main() { |
| 23 | 2 | if (1 == 1) { |
| 24 | | ~~~~~~~~~~~ |
| 25 | 3 | println('yeay') |
| 26 | 4 | } else if (1 == 2) { |
| 27 | vlib/v/checker/tests/unnecessary_parenthesis.vv:4:4: warning: unnecessary `()` in `if` condition, use `if expr {` instead of `if (expr) {`. |
| 28 | 2 | if (1 == 1) { |
| 29 | 3 | println('yeay') |
| 30 | 4 | } else if (1 == 2) { |
| 31 | | ~~~~~~~~~~~~~~~~ |
| 32 | 5 | println("oh no :'(") |
| 33 | 6 | } else if (1 == 3) { |
| 34 | vlib/v/checker/tests/unnecessary_parenthesis.vv:6:4: warning: unnecessary `()` in `if` condition, use `if expr {` instead of `if (expr) {`. |
| 35 | 4 | } else if (1 == 2) { |
| 36 | 5 | println("oh no :'(") |
| 37 | 6 | } else if (1 == 3) { |
| 38 | | ~~~~~~~~~~~~~~~~ |
| 39 | 7 | println("what's wrong with physics ????") |
| 40 | 8 | } |
| 41 | |