| 1 | vlib/v/checker/tests/duplicate_field_method_err.vv:9:2: error: type `Foo` has both field and method named `bar` |
| 2 | 7 | interface Foo { |
| 3 | 8 | bar fn () |
| 4 | 9 | bar() |
| 5 | | ~~~~~ |
| 6 | 10 | } |
| 7 | vlib/v/checker/tests/duplicate_field_method_err.vv:5:1: error: type `St` has both field and method named `attr` |
| 8 | 3 | } |
| 9 | 4 | |
| 10 | 5 | fn (s St) attr() {} |
| 11 | | ~~~~~~~~~~~~~~~~ |
| 12 | 6 | |
| 13 | 7 | interface Foo { |
| 14 |