fpc/tests/webtbf/tw8528.pp
Jonas Maebe 428306051f * give again an error for "in" operations on incompatible set
elements/sets after introduction of support for "longint in set"

git-svn-id: trunk@6885 -
2007-03-16 19:44:43 +00:00

17 lines
194 B
ObjectPascal

{ %fail }
program test;
{$mode objfpc}{$H+}
const
AllowedCharSet: set of Byte = [48..60];
var
s: string;
begin
s := 'test0';
if s[5] in AllowedCharSet then
Writeln('huh?');
end.