fpc/tests/webtbs/tw40453.pp
2023-10-15 11:22:05 +00:00

21 lines
242 B
ObjectPascal

{%NORUN}
program Project1;
{$mode delphi}
type
TEnum = (A, B, C);
procedure Test<T>(E: T);
type
S1 = set of TEnum;
S2 = set of Low(T)..High(T);
S3 = set of T; //Error
begin
end;
begin
Test<TEnum>(B);
end.