mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: check if mutable receivers are modified
This commit is contained in:
@@ -41,7 +41,7 @@ fn (r mut Repl) checks(line string) bool {
|
||||
return r.in_func || (was_indent && r.indent <= 0) || r.indent > 0
|
||||
}
|
||||
|
||||
fn (r mut Repl) function_call(line string) bool {
|
||||
fn (r &Repl) function_call(line string) bool {
|
||||
for function in r.functions_name {
|
||||
if line.starts_with(function) {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user