v2 / vlib / v / checker / tests / alias_to_option_err.out
42 lines · 42 sloc · 1.53 KB · c657384f72195a6424825c025891bc810757f464
Raw
1vlib/v/checker/tests/alias_to_option_err.vv:11:7: error: alias to Option type requires to be used as Option type (?TestInt(...))
2 9 |
3 10 | fn main() {
4 11 | f := TestInt(1)
5 | ~~~~~~~~~~
6 12 | dump(f)
7 13 | println(f)
8vlib/v/checker/tests/alias_to_option_err.vv:15:7: error: alias to Option type requires to be used as Option type (?TestString(...))
9 13 | println(f)
10 14 |
11 15 | g := TestString('foo')
12 | ~~~~~~~~~~~~~~~~~
13 16 | dump(g)
14 17 | println(g)
15vlib/v/checker/tests/alias_to_option_err.vv:19:7: error: alias to Option type requires to be used as Option type (?TestString(...))
16 17 | println(g)
17 18 |
18 19 | h := TestString(none)
19 | ~~~~~~~~~~~~~~~~
20 20 | dump(h)
21 21 |
22vlib/v/checker/tests/alias_to_option_err.vv:22:7: error: alias to Option type requires to be used as Option type (?TestF64(...))
23 20 | dump(h)
24 21 |
25 22 | i := TestF64(none)
26 | ~~~~~~~~~~~~~
27 23 | dump(i)
28 24 |
29vlib/v/checker/tests/alias_to_option_err.vv:25:7: error: alias to Option type requires to be used as Option type (?TestStruct(...))
30 23 | dump(i)
31 24 |
32 25 | l := TestStruct(none)
33 | ~~~~~~~~~~~~~~~~
34 26 | dump(l)
35 27 |
36vlib/v/checker/tests/alias_to_option_err.vv:28:7: error: alias to Option type requires to be used as Option type (?TestStruct(...))
37 26 | dump(l)
38 27 |
39 28 | k := TestStruct(Struct{})
40 | ~~~~~~~~~~~~~~~~~~~~
41 29 | dump(k)
42 30 | }
43