v2 / vlib / v / checker / tests / enum_from_string_args_err.out
34 lines · 34 sloc · 1.44 KB · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/enum_from_string_args_err.vv:8:2: error: expected 1 argument, but got 0
2 6 |
3 7 | fn main() {
4 8 | Color.from_string()
5 | ~~~~~~~~~~~~~~~~~~~
6 9 | Color.from_string('red', 'blue')
7 10 | Color.from_string(22)
8vlib/v/checker/tests/enum_from_string_args_err.vv:9:2: error: expected 1 argument, but got 2
9 7 | fn main() {
10 8 | Color.from_string()
11 9 | Color.from_string('red', 'blue')
12 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 10 | Color.from_string(22)
14 11 | Color.from_string(22.22)
15vlib/v/checker/tests/enum_from_string_args_err.vv:10:2: error: expected `string` argument, but got `int literal`
16 8 | Color.from_string()
17 9 | Color.from_string('red', 'blue')
18 10 | Color.from_string(22)
19 | ~~~~~~~~~~~~~~~~~~~~~
20 11 | Color.from_string(22.22)
21 12 | Color.from_string(true)
22vlib/v/checker/tests/enum_from_string_args_err.vv:11:2: error: expected `string` argument, but got `float literal`
23 9 | Color.from_string('red', 'blue')
24 10 | Color.from_string(22)
25 11 | Color.from_string(22.22)
26 | ~~~~~~~~~~~~~~~~~~~~~~~~
27 12 | Color.from_string(true)
28 13 | }
29vlib/v/checker/tests/enum_from_string_args_err.vv:12:2: error: expected `string` argument, but got `bool`
30 10 | Color.from_string(22)
31 11 | Color.from_string(22.22)
32 12 | Color.from_string(true)
33 | ~~~~~~~~~~~~~~~~~~~~~~~
34 13 | }
35