From 565922f9ad910473e9a8430bc860171187978782 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Tue, 12 Jun 2018 17:52:16 +0200 Subject: [PATCH] naked expressions beginning with the member operator were allowed erroneously outside of the console (Fixes issue #2971) --- components/compiler/lineparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/compiler/lineparser.cpp b/components/compiler/lineparser.cpp index c7f82a3d0..2d551348d 100644 --- a/components/compiler/lineparser.cpp +++ b/components/compiler/lineparser.cpp @@ -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);