vxx2 / vlib / v / checker / tests / import_mod_as_duplicate_err.out
12 lines · 12 sloc · 480 bytes · c086bee5bebb8b9374605fc65469f629d42ae18d
Raw
1vlib/v/checker/tests/import_mod_as_duplicate_err.vv:3:16: error: cannot import `json` as `json2` into a module with the same name
2 1 | module json2
3 2 |
4 3 | import json as json2
5 | ~~~~~
6 4 |
7 5 | _ := json2.encode('foo')
8vlib/v/checker/tests/import_mod_as_duplicate_err.vv:1:1: error: project must include a `main` module or be a shared library (compile with `v -shared`)
9 1 | module json2
10 | ^
11 2 |
12 3 | import json as json2
13