{ this tests that type checks for inline specialized types work } program tgeneric53; {$ifdef fpc} {$mode delphi} {$endif} {$apptype console} type TTest = class function Test: Integer; end; TTestGen = class(TTest) function Test: Integer; end; function TTest.Test: Integer; begin Result := 1; end; function TTestGen.Test: Integer; begin Result := 2; end; var t: TTest; begin t := TTestGen.Create; if t is TTestGen then Writeln('t is a TTestGen') else begin Writeln('t is not a TTestGen'); Halt(1); end; Writeln('ok'); end.