| 1 | vlib/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') |
| 8 | vlib/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 |