vxx2 / vlib / v / checker / tests / clash_ident_module_name_prefix.vv
23 lines · 18 sloc · 447 bytes · 04e79e7b2a96bed2592d7939258ff455be82db16
Raw
1import time
2
3// builtin__ prefix should always produce an error
4// time is imported so the time__ prefix should always produce an error
5// os is not imported so the os__ prefix should not produce an error
6
7fn builtin__string_str() {
8}
9
10fn time__utc() {
11}
12
13fn os__getwd() {
14}
15
16fn main() {
17 builtin__string_str := 'Hello V!'.str()
18 time__now := time.now()
19 os__log := 'Hello V!'
20 println(builtin__string_str)
21 println(time__now)
22 println(os__log)
23}
24