v4 / vlib / v / checker / tests / incorrect_smartcast2_err.out
14 lines · 14 sloc · 487 bytes · dc7d47597b285c66e4887daa5cf31b3886eb433f
Raw
1vlib/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 {
8vlib/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