Browse Source

+ bug from array const

pierre 26 years ago
parent
commit
a62cfb9ea4
2 changed files with 23 additions and 0 deletions
  1. 22 0
      bugs/bug0233.pp
  2. 1 0
      bugs/readme.txt

+ 22 - 0
bugs/bug0233.pp

@@ -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.

+ 1 - 0
bugs/readme.txt

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