mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 06:49:27 +02:00
* allow prec/succ on non-consecutive enums if pred/succ are generated internally
git-svn-id: trunk@34813 -
This commit is contained in:
parent
f4d1331bbe
commit
a705525e9b
@ -2924,7 +2924,8 @@ implementation
|
||||
begin
|
||||
if (resultdef.typ=enumdef) and
|
||||
(tenumdef(resultdef).has_jumps) and
|
||||
not(m_delphi in current_settings.modeswitches) then
|
||||
not(m_delphi in current_settings.modeswitches) and
|
||||
not(nf_internal in flags) then
|
||||
CGMessage(type_e_succ_and_pred_enums_with_assign_not_possible);
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user