pascalabcnet/TestSuite/patterns-extended-is-short.pas

8 lines
128 B
ObjectPascal
Raw Permalink Normal View History

2019-05-28 09:21:59 +03:00
type
t1=class end;
t2=class(t1) end;
begin
var l: List<t1> := nil;
if (l <> nil) and (l[0] is t2(var a)) then ;
end.