mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 10:39:08 +02:00
Merged revision(s) 65275 #57339c6efd from trunk:
CodeTools: Allow a "var" section inside a record with {$modeswitch advancedrecords}. Issue #38957, patch by Domingo Galmés. ........ git-svn-id: branches/fixes_2_2@65283 -
This commit is contained in:
parent
52b9e351b3
commit
f766a09ccc
@ -5199,9 +5199,8 @@ begin
|
||||
if not UpAtomIs('CASE') then
|
||||
SaveRaiseException(20170421195151,'[TPascalParserTool.KeyWordFuncTypeRecordCase] '
|
||||
+'internal error');
|
||||
if (CurNode.Desc=ctnRecordVariant)
|
||||
or ((CurNode.Desc in AllClassSections)
|
||||
and (CurNode.Parent.Desc=ctnRecordType))
|
||||
if (CurNode.Desc in [ctnRecordVariant,ctnVarSection,ctnClassClassVar])
|
||||
or ((CurNode.Desc in AllClassSections) and (CurNode.Parent.Desc=ctnRecordType))
|
||||
then begin
|
||||
// ok
|
||||
end else begin
|
||||
|
Loading…
Reference in New Issue
Block a user