mirror of
https://github.com/vlang/v.git
synced 2025-09-14 09:56:16 -04:00
checker: remove resolved vfmt workaround and TODO (#21175)
This commit is contained in:
parent
f9fa8d8e66
commit
bb42e1ce73
@ -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
|
||||
3 | // That is unrelated to what this file tests, but should be investigated further and fixed when the module lookup disrepancy is fixed.
|
||||
4 | import bbb.ccc
|
||||
5 | import www.ttt
|
||||
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
|
||||
1 | import bbb.ccc
|
||||
2 | import www.ttt
|
||||
| ~~~~~~~~~~~~~~
|
||||
6 | import xxx.yyy
|
||||
7 | // vfmt on
|
||||
vlib/v/checker/tests/modules/deprecated_module/main.v:16:11: error: undefined ident: `deprecated_module.www.ttt.non_existing`
|
||||
14 | dump(ttt.f())
|
||||
15 | dump(yyy.f())
|
||||
16 | dump(ttt.non_existing)
|
||||
3 | import xxx.yyy
|
||||
4 |
|
||||
vlib/v/checker/tests/modules/deprecated_module/main.v:12:11: error: undefined ident: `deprecated_module.www.ttt.non_existing`
|
||||
10 | dump(ttt.f())
|
||||
11 | dump(yyy.f())
|
||||
12 | dump(ttt.non_existing)
|
||||
| ~~~~~~~~~~~~
|
||||
17 | }
|
||||
vlib/v/checker/tests/modules/deprecated_module/main.v:16:11: error: dump expression can not be void
|
||||
14 | dump(ttt.f())
|
||||
15 | dump(yyy.f())
|
||||
16 | dump(ttt.non_existing)
|
||||
13 | }
|
||||
vlib/v/checker/tests/modules/deprecated_module/main.v:12:11: error: dump expression can not be void
|
||||
10 | dump(ttt.f())
|
||||
11 | dump(yyy.f())
|
||||
12 | dump(ttt.non_existing)
|
||||
| ~~~~~~~~~~~~
|
||||
17 | }
|
||||
13 | }
|
||||
|
@ -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 www.ttt
|
||||
import xxx.yyy
|
||||
// vfmt on
|
||||
|
||||
// Note: www.ttt has been deprecated.
|
||||
// => compiling this should produce an error,
|
||||
|
Loading…
x
Reference in New Issue
Block a user