mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-03 04:29:27 +01:00
* allow passing read-only typedconsts to const parameters
git-svn-id: trunk@242 -
This commit is contained in:
parent
8a226bba52
commit
393101a64d
@ -1153,7 +1153,8 @@ implementation
|
|||||||
typedconstsym :
|
typedconstsym :
|
||||||
begin
|
begin
|
||||||
if ttypedconstsym(tloadnode(hp).symtableentry).is_writable or
|
if ttypedconstsym(tloadnode(hp).symtableentry).is_writable or
|
||||||
(valid_addr in opts) then
|
(valid_addr in opts) or
|
||||||
|
(valid_const in opts) then
|
||||||
result:=true
|
result:=true
|
||||||
else
|
else
|
||||||
CGMessagePos(hp.fileinfo,type_e_no_assign_to_const);
|
CGMessagePos(hp.fileinfo,type_e_no_assign_to_const);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user