fpc/tests/tbf/tb0103.pp
2001-04-13 22:41:39 +00:00

10 lines
146 B
ObjectPascal

{ %fail }
{$R+}
Type Directions = (North, East,South,West);
Var Go : Directions;
begin
Go:=Pred(North); { must give compile time error }
end.