Fix reference parameter capture
This commit is contained in:
parent
4954a285e7
commit
2e3aea9d96
|
@ -5125,7 +5125,7 @@ Expression* Parser::ParseLambdaExpression(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Declaration* mvdec = mScope->Lookup(mdec->mIdent);
|
Declaration* mvdec = mScope->Lookup(mdec->mIdent);
|
||||||
if (mvdec && mvdec->mType == DT_VARIABLE)
|
if (mvdec && (mvdec->mType == DT_VARIABLE || mvdec->mType == DT_ARGUMENT))
|
||||||
{
|
{
|
||||||
iexp = new Expression(mdec->mLocation, EX_VARIABLE);
|
iexp = new Expression(mdec->mLocation, EX_VARIABLE);
|
||||||
iexp->mDecType = mvdec->mBase;
|
iexp->mDecType = mvdec->mBase;
|
||||||
|
|
Loading…
Reference in New Issue