1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v: forbid local variable names, shadowing imported module names (#17197)

This commit is contained in:
ChAoS_UnItY
2023-02-03 15:09:41 +08:00
committed by GitHub
parent 603469b856
commit 0b7a1cd7ce
7 changed files with 43 additions and 17 deletions

View File

@@ -1424,8 +1424,8 @@ import os { input, user_os }
name := input('Enter your name: ')
println('Name: ${name}')
os := user_os()
println('Your OS is ${os}.')
current_os := user_os()
println('Your OS is ${current_os}.')
```
### Module import aliasing