mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 11:39:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			292 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			292 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
type
 | 
						|
  days = (sun,mon,tue,wed,thu,fri,sat);
 | 
						|
  workdays = mon..fri;
 | 
						|
 | 
						|
procedure t(d: workdays);
 | 
						|
  begin
 | 
						|
     case d of
 | 
						|
        mon: writeln('monday');
 | 
						|
        thu: writeln('thursday');
 | 
						|
     else
 | 
						|
        writeln('error');
 | 
						|
     end;
 | 
						|
  end;
 | 
						|
 | 
						|
var
 | 
						|
   d: workdays;
 | 
						|
 | 
						|
begin
 | 
						|
   d := thu;
 | 
						|
   t(d);
 | 
						|
end.
 |