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

0.6.3
Marc Zinnschlag 7 years ago
parent 296ad8424e
commit 565922f9ad

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

Loading…
Cancel
Save