2018-05-11 19:26:55 +03:00
|
|
|
|
begin
|
|
|
|
|
|
match 'asd' with
|
|
|
|
|
|
string(s):
|
2018-10-20 19:27:49 +03:00
|
|
|
|
match s as object with
|
2018-05-11 19:26:55 +03:00
|
|
|
|
integer(i): Assert(false);
|
|
|
|
|
|
string(s1) when s.Length > 1: ;
|
|
|
|
|
|
else Assert(false);
|
|
|
|
|
|
end;
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2018-10-20 19:27:49 +03:00
|
|
|
|
match 'asd' as object with
|
2018-05-11 19:26:55 +03:00
|
|
|
|
integer(i): Assert(false);
|
|
|
|
|
|
string(s1) when s1.Length > 3: Assert(false);
|
|
|
|
|
|
end;
|
|
|
|
|
|
end.
|