mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 03:19:47 +01:00 
			
		
		
		
	* Fixed lost default value in case of a property override
git-svn-id: trunk@12114 -
This commit is contained in:
		
							parent
							
								
									1b418875b3
								
							
						
					
					
						commit
						11a41788fb
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user