mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
force mut a := ...
, do not allow mut a = ...
This commit is contained in:
@ -531,7 +531,7 @@ fn (p mut Parser) fn_call(f Fn, method_ph int, receiver_var, receiver_type strin
|
||||
if !receiver.is_mut && receiver_type.contains('*') {
|
||||
method_call += '*'
|
||||
}
|
||||
mut cast = ''
|
||||
mut cast := ''
|
||||
// Method returns (void*) => cast it to int, string, user etc
|
||||
// number := *(int*)numbers.first()
|
||||
if f.typ == 'void*' {
|
||||
|
Reference in New Issue
Block a user