| 1 | vlib/v/checker/tests/enum_self_reference.vv:6:6: error: enum value `10` already exists |
| 2 | 4 | enum ExampleSigned as i8 { |
| 3 | 5 | a = a |
| 4 | 6 | b = a |
| 5 | | ^ |
| 6 | 7 | c = .a |
| 7 | 8 | c = .c |
| 8 | Details: use `@[_allow_multiple_values]` attribute to allow multiple enum values. Use only when it is needed |
| 9 | vlib/v/checker/tests/enum_self_reference.vv:7:6: error: enum value `10` already exists |
| 10 | 5 | a = a |
| 11 | 6 | b = a |
| 12 | 7 | c = .a |
| 13 | | ~~ |
| 14 | 8 | c = .c |
| 15 | 9 | d = .d |
| 16 | Details: use `@[_allow_multiple_values]` attribute to allow multiple enum values. Use only when needed |
| 17 | vlib/v/checker/tests/enum_self_reference.vv:8:2: error: duplicate enum field name `c` |
| 18 | 6 | b = a |
| 19 | 7 | c = .a |
| 20 | 8 | c = .c |
| 21 | | ^ |
| 22 | 9 | d = .d |
| 23 | 10 | } |
| 24 | vlib/v/checker/tests/enum_self_reference.vv:9:6: error: enum value `d` is not allowed to reference itself |
| 25 | 7 | c = .a |
| 26 | 8 | c = .c |
| 27 | 9 | d = .d |
| 28 | | ~~ |
| 29 | 10 | } |
| 30 | 11 | |
| 31 | Details: use `@[_allow_multiple_values]` attribute to allow multiple enum values. Use only when needed |
| 32 | vlib/v/checker/tests/enum_self_reference.vv:14:6: error: enum value `10` already exists |
| 33 | 12 | enum ExampleUnSigned as u8 { |
| 34 | 13 | a = a |
| 35 | 14 | b = a |
| 36 | | ^ |
| 37 | 15 | c = .a |
| 38 | 16 | c = .c |
| 39 | Details: use `@[_allow_multiple_values]` attribute to allow multiple enum values. Use only when it is needed |
| 40 | vlib/v/checker/tests/enum_self_reference.vv:15:6: error: enum value `10` already exists |
| 41 | 13 | a = a |
| 42 | 14 | b = a |
| 43 | 15 | c = .a |
| 44 | | ~~ |
| 45 | 16 | c = .c |
| 46 | 17 | d = .d |
| 47 | Details: use `@[_allow_multiple_values]` attribute to allow multiple enum values. Use only when needed |
| 48 | vlib/v/checker/tests/enum_self_reference.vv:16:2: error: duplicate enum field name `c` |
| 49 | 14 | b = a |
| 50 | 15 | c = .a |
| 51 | 16 | c = .c |
| 52 | | ^ |
| 53 | 17 | d = .d |
| 54 | 18 | } |
| 55 | vlib/v/checker/tests/enum_self_reference.vv:17:6: error: enum value `d` is not allowed to reference itself |
| 56 | 15 | c = .a |
| 57 | 16 | c = .c |
| 58 | 17 | d = .d |
| 59 | | ~~ |
| 60 | 18 | } |
| 61 | 19 | |
| 62 | Details: use `@[_allow_multiple_values]` attribute to allow multiple enum values. Use only when needed |
| 63 | vlib/v/checker/tests/enum_self_reference.vv:24:10: error: `AllowedExampleSigned.z` should be declared before using it |
| 64 | 22 | a = a |
| 65 | 23 | b = a |
| 66 | 24 | c = .z |
| 67 | | ~~ |
| 68 | 25 | c = .a |
| 69 | 26 | c = .c |
| 70 | vlib/v/checker/tests/enum_self_reference.vv:25:2: error: duplicate enum field name `c` |
| 71 | 23 | b = a |
| 72 | 24 | c = .z |
| 73 | 25 | c = .a |
| 74 | | ^ |
| 75 | 26 | c = .c |
| 76 | 27 | d = .d |
| 77 | vlib/v/checker/tests/enum_self_reference.vv:26:2: error: duplicate enum field name `c` |
| 78 | 24 | c = .z |
| 79 | 25 | c = .a |
| 80 | 26 | c = .c |
| 81 | | ^ |
| 82 | 27 | d = .d |
| 83 | 28 | prev1 = .a |
| 84 | vlib/v/checker/tests/enum_self_reference.vv:30:10: error: `AllowedExampleSigned.rec2` should be declared before using it |
| 85 | 28 | prev1 = .a |
| 86 | 29 | prev2 = .c |
| 87 | 30 | rec1 = .rec2 |
| 88 | | ~~~~~ |
| 89 | 31 | rec2 = .rec1 |
| 90 | 32 | a = 2 |
| 91 | vlib/v/checker/tests/enum_self_reference.vv:32:2: error: duplicate enum field name `a` |
| 92 | 30 | rec1 = .rec2 |
| 93 | 31 | rec2 = .rec1 |
| 94 | 32 | a = 2 |
| 95 | | ^ |
| 96 | 33 | z = 5 |
| 97 | 34 | w = .w |
| 98 | vlib/v/checker/tests/enum_self_reference.vv:41:10: error: `AllowedExampleUnSigned.z` should be declared before using it |
| 99 | 39 | a = a |
| 100 | 40 | b = a |
| 101 | 41 | c = .z |
| 102 | | ~~ |
| 103 | 42 | c = .a |
| 104 | 43 | c = .c |
| 105 | vlib/v/checker/tests/enum_self_reference.vv:42:2: error: duplicate enum field name `c` |
| 106 | 40 | b = a |
| 107 | 41 | c = .z |
| 108 | 42 | c = .a |
| 109 | | ^ |
| 110 | 43 | c = .c |
| 111 | 44 | d = .d |
| 112 | vlib/v/checker/tests/enum_self_reference.vv:43:2: error: duplicate enum field name `c` |
| 113 | 41 | c = .z |
| 114 | 42 | c = .a |
| 115 | 43 | c = .c |
| 116 | | ^ |
| 117 | 44 | d = .d |
| 118 | 45 | prev1 = .a |
| 119 | vlib/v/checker/tests/enum_self_reference.vv:47:10: error: `AllowedExampleUnSigned.rec2` should be declared before using it |
| 120 | 45 | prev1 = .a |
| 121 | 46 | prev2 = .c |
| 122 | 47 | rec1 = .rec2 |
| 123 | | ~~~~~ |
| 124 | 48 | rec2 = .rec1 |
| 125 | 49 | a = 2 |
| 126 | vlib/v/checker/tests/enum_self_reference.vv:49:2: error: duplicate enum field name `a` |
| 127 | 47 | rec1 = .rec2 |
| 128 | 48 | rec2 = .rec1 |
| 129 | 49 | a = 2 |
| 130 | | ^ |
| 131 | 50 | z = 5 |
| 132 | 51 | w = .w |
| 133 | |