mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: do not allow duplicate fns; cgen: move fn code to fn.v
This commit is contained in:
@@ -141,7 +141,7 @@ fn vpm_install(module_names []string) {
|
||||
if vcs == '' {
|
||||
vcs = supported_vcs_systems[0]
|
||||
}
|
||||
if !vcs in supported_vcs_systems {
|
||||
if vcs !in supported_vcs_systems {
|
||||
errors++
|
||||
println('Skipping module "$name", since it uses an unsupported VCS {$vcs} .')
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user