| 1 | vlib/v/checker/tests/incorrect_smartcast2_err.vv:11:4: notice: unused function: `works` |
| 2 | 9 | type Either[T, E] = Left[E] | Right[T] |
| 3 | 10 | |
| 4 | 11 | fn works(v []Either[int, int]) { |
| 5 | | ~~~~~ |
| 6 | 12 | first := v[0] |
| 7 | 13 | match first { |
| 8 | vlib/v/checker/tests/incorrect_smartcast2_err.vv:21:4: notice: unused function: `doesntwork` |
| 9 | 19 | } |
| 10 | 20 | |
| 11 | 21 | fn doesntwork(v []Either[int, int]) { |
| 12 | | ~~~~~~~~~~ |
| 13 | 22 | match v[0] { |
| 14 | 23 | Left[int] { |
| 15 |