- fixed: For proper recognition of optional function arguments, the argflags must also be copied from the parent function to ensure they are itdentical on the override.

This commit is contained in:
Christoph Oelckers 2018-03-14 19:52:30 +01:00
parent 549a290a2f
commit f1bfc3514d

View file

@ -2743,6 +2743,7 @@ void ZCCCompiler::CompileFunction(ZCC_StructWork *c, ZCC_FuncDeclarator *f, bool
if (parentfunc->Variants[0].Implementation->DefaultArgs.Size() > 0) if (parentfunc->Variants[0].Implementation->DefaultArgs.Size() > 0)
{ {
sym->Variants[0].Implementation->DefaultArgs = parentfunc->Variants[0].Implementation->DefaultArgs; sym->Variants[0].Implementation->DefaultArgs = parentfunc->Variants[0].Implementation->DefaultArgs;
sym->Variants[0].ArgFlags = parentfunc->Variants[0].ArgFlags;
} }
} }
} }