mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-22 16:11:44 +02: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 :
|
||||
begin
|
||||
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
|
||||
else
|
||||
CGMessagePos(hp.fileinfo,type_e_no_assign_to_const);
|
||||
|
Loading…
Reference in New Issue
Block a user