mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
@ -54,7 +54,8 @@ fn (mut r Repl) checks() bool {
|
||||
|
||||
fn (r &Repl) function_call(line string) bool {
|
||||
for function in r.functions_name {
|
||||
if line.starts_with(function) {
|
||||
is_function_definition := line.replace(' ', '').starts_with("$function:=")
|
||||
if line.starts_with(function) && !is_function_definition {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user