1
0
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:
Alexander Medvednikov
2020-04-13 19:59:57 +02:00
parent fb4cfa72cd
commit 24958df565
7 changed files with 193 additions and 178 deletions

View File

@@ -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