Bugfix return type for some set operators
This commit is contained in:
parent
32bfe1c803
commit
19f7d2a0eb
2 changed files with 15 additions and 0 deletions
11
tests/settest.pas
Normal file
11
tests/settest.pas
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
program settest;
|
||||
type myset = set of (alpha, beta, gamma, delta);
|
||||
var a,b:myset;
|
||||
begin
|
||||
a := [alpha, gamma];
|
||||
b := [alpha, gamma, delta];
|
||||
writeln (a <= b);
|
||||
writeln (a >= b);
|
||||
writeln (b >= a);
|
||||
writeln ((b - [alpha, gamma]) >= a);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue