naked expressions beginning with the member operator were allowed erroneously outside of the console (Fixes issue #2971)

pull/456/head
Marc Zinnschlag 7 years ago
parent 296ad8424e
commit 565922f9ad

@ -512,7 +512,7 @@ namespace Compiler
return true;
}
if (code==Scanner::S_member && mState==PotentialExplicitState)
if (code==Scanner::S_member && mState==PotentialExplicitState && mAllowExpression)
{
mState = MemberState;
parseExpression (scanner, loc);

Loading…
Cancel
Save