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