mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 08:39:51 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			437 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			437 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{ %FAIL }
 | 
						|
 | 
						|
{ derived from source for Bug Report 1203 }
 | 
						|
{ in FPC mode this shouldn't compile      }
 | 
						|
{$mode objfpc}
 | 
						|
type
 | 
						|
     someprocedureofobjectype=procedure (sender:tobject) OF OBJECT;
 | 
						|
     a=class
 | 
						|
     protected
 | 
						|
        fondisplay : someprocedureofobjectype;
 | 
						|
     public
 | 
						|
        a:longint;
 | 
						|
     end;
 | 
						|
 | 
						|
     b=class(A)
 | 
						|
     protected
 | 
						|
        fondisplay : someprocedureofobjectype;
 | 
						|
     public
 | 
						|
        a:longint;
 | 
						|
     end;
 | 
						|
 | 
						|
begin
 | 
						|
end.
 | 
						|
 | 
						|
 |