mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 20:30:29 +02:00
+ bug from array const
This commit is contained in:
parent
826b8ead0f
commit
a62cfb9ea4
22
bugs/bug0233.pp
Normal file
22
bugs/bug0233.pp
Normal 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.
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user