mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
fix single file programs without fn main
and REPL (allow imports,
function definitions, consts, etc)
This commit is contained in:
parent
fd9163f715
commit
bd49977feb
5 changed files with 31 additions and 28 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue