pascalabcnet/TestSuite/patterns-deconstruct-default.pas
2018-05-11 19:26:55 +03:00

15 lines
298 B
ObjectPascal

begin
match 'asd' with
string(s):
match s with
integer(i): Assert(false);
string(s1) when s.Length > 1: ;
else Assert(false);
end;
end;
match 'asd' with
integer(i): Assert(false);
string(s1) when s1.Length > 3: Assert(false);
end;
end.