* Fixed lost default value in case of a property override

git-svn-id: trunk@12114 -
This commit is contained in:
michael 2008-11-15 22:13:59 +00:00
parent 1b418875b3
commit 11a41788fb

View File

@ -285,6 +285,7 @@ implementation
{ Generate propertysym and insert in symtablestack }
p:=tpropertysym.create(orgpattern);
p.visibility:=symtablestack.top.currentvisibility;
p.default:=longint($80000000);
symtablestack.top.insert(p);
consume(_ID);
{ property parameters ? }
@ -632,12 +633,13 @@ implementation
else if try_to_consume(_NODEFAULT) then
begin
p.default:=longint($80000000);
end
else if allow_default_property(p) then
end;
(*
else {if allow_default_property(p) then
begin
p.default:=longint($80000000);
end;
*)
{ Parse possible "implements" keyword }
if try_to_consume(_IMPLEMENTS) then
begin