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

vfmt: fix compilation warning

This commit is contained in:
Delyan Angelov 2020-11-27 10:40:56 +02:00
parent 9b0c96d792
commit cbe607baf2

View File

@ -79,7 +79,7 @@ pub fn (mut f Fmt) process_file_imports(file &ast.File) {
for imp in file.imports { for imp in file.imports {
f.mod2alias[imp.mod.all_after_last('.')] = imp.alias f.mod2alias[imp.mod.all_after_last('.')] = imp.alias
for sym in imp.syms { for sym in imp.syms {
f.mod2alias['$imp.mod\.$sym.name'] = sym.name f.mod2alias['${imp.mod}.$sym.name'] = sym.name
f.mod2alias[sym.name] = sym.name f.mod2alias[sym.name] = sym.name
} }
} }