mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 02:39:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			272 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			272 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
type
 | 
						|
   TParent = object
 | 
						|
   end;
 | 
						|
 | 
						|
   PParent = ^TParent;
 | 
						|
 | 
						|
   TChild = object(TParent)
 | 
						|
   end;
 | 
						|
 | 
						|
procedure aProc(const x : TParent );
 | 
						|
begin
 | 
						|
end;
 | 
						|
 | 
						|
procedure anotherProc(var x : TParent );
 | 
						|
begin
 | 
						|
end;
 | 
						|
 | 
						|
var
 | 
						|
   y : TChild;
 | 
						|
 | 
						|
   begin
 | 
						|
      aProc(y);
 | 
						|
      anotherProc(y);
 | 
						|
   end.
 |