pascalabcnet/TestSuite/patterns/patterns-simple-tuple.pas

7 lines
145 B
ObjectPascal
Raw Permalink Normal View History

begin
match (1, 2, 'string') with
(1, _, 'str'): assert(false);
(1, _, 'strin'): assert(false);
2019-05-23 10:37:16 +03:00
(_, _, 'string'): ;
end;
end.