diff --git a/oscar64/Parser.cpp b/oscar64/Parser.cpp index a2710dd..991065e 100644 --- a/oscar64/Parser.cpp +++ b/oscar64/Parser.cpp @@ -5125,7 +5125,7 @@ Expression* Parser::ParseLambdaExpression(void) else { 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->mDecType = mvdec->mBase;