v2 / vlib / v / checker / tests / unknown_method.out
20 lines · 20 sloc · 658 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/unknown_method.vv:13:12: error: unknown method or field: `Test.sdd`
2 11 | fn main() {
3 12 | t := Test{}
4 13 | println(t.sdd())
5 | ~~~~~
6 14 |
7 15 | foo := new_foo[int]()
8vlib/v/checker/tests/unknown_method.vv:13:2: error: `println` can not print void expressions
9 11 | fn main() {
10 12 | t := Test{}
11 13 | println(t.sdd())
12 | ~~~~~~~~~~~~~~~~
13 14 |
14 15 | foo := new_foo[int]()
15vlib/v/checker/tests/unknown_method.vv:16:6: error: unknown method or field: `Foo[F].bar`
16 14 |
17 15 | foo := new_foo[int]()
18 16 | foo.bar()
19 | ~~~~~
20 17 | }
21