checker: remove resolved vfmt workaround and TODO (#21175)

This commit is contained in:
Turiiya 2024-04-03 19:58:59 +02:00 committed by GitHub
parent f9fa8d8e66
commit bb42e1ce73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 20 deletions

View File

@ -1,19 +1,18 @@
vlib/v/checker/tests/modules/deprecated_module/main.v:5:1: notice: module `deprecated_module.www.ttt` will be deprecated after 2999-01-01, and will become an error after 2999-06-30; use xxx.yyy vlib/v/checker/tests/modules/deprecated_module/main.v:2:1: notice: module `deprecated_module.www.ttt` will be deprecated after 2999-01-01, and will become an error after 2999-06-30; use xxx.yyy
3 | // That is unrelated to what this file tests, but should be investigated further and fixed when the module lookup disrepancy is fixed. 1 | import bbb.ccc
4 | import bbb.ccc 2 | import www.ttt
5 | import www.ttt
| ~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~
6 | import xxx.yyy 3 | import xxx.yyy
7 | // vfmt on 4 |
vlib/v/checker/tests/modules/deprecated_module/main.v:16:11: error: undefined ident: `deprecated_module.www.ttt.non_existing` vlib/v/checker/tests/modules/deprecated_module/main.v:12:11: error: undefined ident: `deprecated_module.www.ttt.non_existing`
14 | dump(ttt.f()) 10 | dump(ttt.f())
15 | dump(yyy.f()) 11 | dump(yyy.f())
16 | dump(ttt.non_existing) 12 | dump(ttt.non_existing)
| ~~~~~~~~~~~~ | ~~~~~~~~~~~~
17 | } 13 | }
vlib/v/checker/tests/modules/deprecated_module/main.v:16:11: error: dump expression can not be void vlib/v/checker/tests/modules/deprecated_module/main.v:12:11: error: dump expression can not be void
14 | dump(ttt.f()) 10 | dump(ttt.f())
15 | dump(yyy.f()) 11 | dump(yyy.f())
16 | dump(ttt.non_existing) 12 | dump(ttt.non_existing)
| ~~~~~~~~~~~~ | ~~~~~~~~~~~~
17 | } 13 | }

View File

@ -1,10 +1,6 @@
// vfmt off
// TODO: without vfmt off, vfmt is buggy, and keeps converting the imports below to `import deprecated_module.bbb.ccc` for some reason, even though the folder has `v.mod`.
// That is unrelated to what this file tests, but should be investigated further and fixed when the module lookup disrepancy is fixed.
import bbb.ccc import bbb.ccc
import www.ttt import www.ttt
import xxx.yyy import xxx.yyy
// vfmt on
// Note: www.ttt has been deprecated. // Note: www.ttt has been deprecated.
// => compiling this should produce an error, // => compiling this should produce an error,