* allow passing read-only typedconsts to const parameters

git-svn-id: trunk@242 -
This commit is contained in:
peter 2005-06-07 20:42:41 +00:00
parent 8a226bba52
commit 393101a64d

View File

@ -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);