Commit 4d929e6
committed
tests: compare a flag enum as an int in enum_method_duplicated_err
The fixture is about a method that duplicates a builtin method of an enum,
but that method's body compared a flag enum with an int literal,
`f & f2 > 0`, which V1 rejects too and which this check now reports,
before the error the fixture is about. The body casts to int, as V asks,
and the fixture shows its own error only.1 parent 4cec3a8 commit 4d929e6
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
0 commit comments