From e554a8f8490a8f63d9dfefb23b56f5274c8ed99b Mon Sep 17 00:00:00 2001 From: mhumm Date: Fri, 26 Apr 2019 20:19:46 +0200 Subject: [PATCH] The jvInterpreter throws a duplicate identifier on whatever the first identifier is (constant, variable, or function). Proposed fix from Mantis issue 6485 --- jvcl/run/JvInterpreter.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/jvcl/run/JvInterpreter.pas b/jvcl/run/JvInterpreter.pas index f58e80f73c..4fa42ed28d 100644 --- a/jvcl/run/JvInterpreter.pas +++ b/jvcl/run/JvInterpreter.pas @@ -7970,6 +7970,7 @@ procedure TJvInterpreterUnit.ReadUnit(const UnitName: string); if FAdapter.UnitExists(UnitName) then Exit; FAdapter.AddSrcUnit(FCurUnitName, '', ''); + FAdapter.AddSrcUnit(UnitName, '', ''); OldUnitName := FCurUnitName; OldSource := Source; PushState;