- reviewed all places where VARF_Action and NAP were used and fixed what was still wrong.

This commit is contained in:
Christoph Oelckers 2016-10-22 18:13:54 +02:00
commit 37914223f0
5 changed files with 20 additions and 17 deletions

View file

@ -143,7 +143,7 @@ PFunction *CreateAnonymousFunction(PClass *containingclass, PType *returntype, i
SetImplicitArgs(&args, &argflags, &argnames, containingclass, flags);
PFunction *sym = new PFunction(containingclass, NAME_None); // anonymous functions do not have names.
sym->AddVariant(NewPrototype(rets, args), argflags, argnames, nullptr, VARF_Action|VARF_Method);
sym->AddVariant(NewPrototype(rets, args), argflags, argnames, nullptr, flags);
return sym;
}