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

fix single file programs without fn main and REPL (allow imports,

function definitions, consts, etc)
This commit is contained in:
Alexander Medvednikov
2019-06-28 12:41:09 +02:00
parent fd9163f715
commit bd49977feb
5 changed files with 31 additions and 28 deletions

View File

@@ -84,8 +84,8 @@ fn (f mut Fn) register_var(v Var) {
}
else {
f.local_vars[f.var_idx] = new_var
f.var_idx++
}
f.var_idx++
}
// vlib header file?