Einzelnen Beitrag anzeigen

Benutzerbild von uligerhardt
uligerhardt

Registriert seit: 19. Aug 2004
Ort: Hof/Saale
1.735 Beiträge
 
Delphi 2007 Professional
 
#3

AW: Compiler Fehler NC338 bei Generics

  Alt 16. Feb 2023, 14:34
Schuss ins Blaue: Vielleicht hilft's, den Rückgabetyp von MyFunc explizit zu machen?
Delphi-Quellcode:
type
  TMyBooleanRecord = TMyRecord<Boolean>;
function MyFunc: TMyBooleanRecord;
statt
function MyFunc: TMyRecord<Boolean>;
Uli Gerhardt
  Mit Zitat antworten Zitat