1
0
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:
Alexander Medvednikov 2019-08-08 10:46:01 +02:00
parent 5e7d3c6aa9
commit 5ea1c538b6

View File

@ -877,7 +877,9 @@ fn (p mut Parser) fn_call_args(f mut Fn) *Fn {
// println('\ne:"$expected" got:"$got"')
else if ! (expected == 'void*' && got == 'int') &&
! (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" */')
}
}