+ bug from array const

This commit is contained in:
pierre 1999-03-22 23:27:07 +00:00
parent 826b8ead0f
commit a62cfb9ea4
2 changed files with 23 additions and 0 deletions

22
bugs/bug0233.pp Normal file
View File

@ -0,0 +1,22 @@
program except_test;
type byteset = set of byte;
enumset = set of (zero,one,two,three);
procedure test(s : byteset);
begin
if 0 in s then
Writeln('Contains zero !');
end;
procedure testenum(s : enumset);
begin
if zero in s then
Writeln('Contains zero !');
end;
begin
test([1..5,8]);
test([0,8,15]);
testenum([zero,two]);
end.

View File

@ -316,3 +316,4 @@ bug0230.pp several strange happen on the ln function: ln(0): no
bug0231.pp Problem with comments
bug0232.pp const. procedure variables need a special syntax
if they use calling specification modifiers
bug0233.pp Problem with enum sets in args