v4 / vlib / v / checker / tests / clash_ident_module_name_prefix.out
35 lines · 35 sloc · 1.46 KB · 81a5657604ec6da99c25e26546870c6888d6fdde
Raw
1vlib/v/checker/tests/clash_ident_module_name_prefix.vv:17:2: notice: variable `builtin__string_str` shadows a function declaration
2 15 |
3 16 | fn main() {
4 17 | builtin__string_str := 'Hello V!'.str()
5 | ~~~~~~~~~~~~~~~~~~~
6 18 | time__now := time.now()
7 19 | os__log := 'Hello V!'
8vlib/v/checker/tests/clash_ident_module_name_prefix.vv:7:1: error: identifier cannot use prefix `builtin__` of imported module `builtin`
9 5 | // os is not imported so the os__ prefix should not produce an error
10 6 |
11 7 | fn builtin__string_str() {
12 | ~~~~~~~~~~~~~~~~~~~~~~~~
13 8 | }
14 9 |
15vlib/v/checker/tests/clash_ident_module_name_prefix.vv:10:1: error: identifier cannot use prefix `time__` of imported module `time`
16 8 | }
17 9 |
18 10 | fn time__utc() {
19 | ~~~~~~~~~~~~~~
20 11 | }
21 12 |
22vlib/v/checker/tests/clash_ident_module_name_prefix.vv:17:2: error: identifier cannot use prefix `builtin__` of imported module `builtin`
23 15 |
24 16 | fn main() {
25 17 | builtin__string_str := 'Hello V!'.str()
26 | ~~~~~~~~~~~~~~~~~~~
27 18 | time__now := time.now()
28 19 | os__log := 'Hello V!'
29vlib/v/checker/tests/clash_ident_module_name_prefix.vv:18:2: error: identifier cannot use prefix `time__` of imported module `time`
30 16 | fn main() {
31 17 | builtin__string_str := 'Hello V!'.str()
32 18 | time__now := time.now()
33 | ~~~~~~~~~
34 19 | os__log := 'Hello V!'
35 20 | println(builtin__string_str)
36