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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user