mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fn: fix & argument bug
This commit is contained in:
parent
5e7d3c6aa9
commit
5ea1c538b6
@ -877,7 +877,9 @@ fn (p mut Parser) fn_call_args(f mut Fn) *Fn {
|
|||||||
// println('\ne:"$expected" got:"$got"')
|
// println('\ne:"$expected" got:"$got"')
|
||||||
else if ! (expected == 'void*' && got == 'int') &&
|
else if ! (expected == 'void*' && got == 'int') &&
|
||||||
! (expected == 'byte*' && got.contains(']byte')) &&
|
! (expected == 'byte*' && got.contains(']byte')) &&
|
||||||
! (expected == 'byte*' && got == 'string') {
|
! (expected == 'byte*' && got == 'string') &&
|
||||||
|
//! (expected == 'void*' && got == 'array_int') {
|
||||||
|
! (expected == 'byte*' && got == 'byteptr') {
|
||||||
p.cgen.set_placeholder(ph, '& /*112 EXP:"$expected" GOT:"$got" */')
|
p.cgen.set_placeholder(ph, '& /*112 EXP:"$expected" GOT:"$got" */')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user