View Issue Details

IDProjectCategoryView StatusLast Update
0038784pas2jstranspilerpublic2021-04-24 15:54
ReporterMichael Van Canneyt Assigned ToMattias Gaertner  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGTK2OSLinux 64-bit 
Product Versiontrunk 
Summary0038784: identifier not resolved in function argument
DescriptionIn the method

 Function RegisterDataEvent<T>(aEvent : TArgumentEventItem<T>.TTEvent; aSender : T) : Integer;

the compiler does not find TTevent. Delphi compiles this.

Steps To ReproduceAttempt to compile attached Units.Eventer.pas
TagsNo tags attached.
Fixed in Revision49256.
Attached Files

Activities

Michael Van Canneyt

2021-04-21 16:17

administrator  

Units.Eventer.pas (611 bytes)   
unit Units.Eventer;

{$mode delphi}

interface

Type
  TEventItem = Class(TObject)
  Protected
    Procedure Execute; virtual; abstract;
  End;

  TArgumentEventItem<T> = Class(TEventItem)
  Public
    Type
      TTEvent =  procedure(Sender : T);
  Public
  End;

  TEventQueue = Class (TObject)
  Private
  Public
    Function RegisterDataEvent<T>(aEvent : TArgumentEventItem<T>.TTEvent; aSender : T) : Integer; 
  End;

implementation


{ TEventQueue }

function TEventQueue.RegisterDataEvent<T>(aEvent: TArgumentEventItem<T>.TTevent; aSender: T): Integer;
begin
end;

end.
Units.Eventer.pas (611 bytes)   

Issue History

Date Modified Username Field Change
2021-04-21 16:17 Michael Van Canneyt New Issue
2021-04-21 16:17 Michael Van Canneyt Status new => assigned
2021-04-21 16:17 Michael Van Canneyt Assigned To => Mattias Gaertner
2021-04-21 16:17 Michael Van Canneyt File Added: Units.Eventer.pas
2021-04-24 15:54 Mattias Gaertner Status assigned => resolved
2021-04-24 15:54 Mattias Gaertner Resolution open => fixed
2021-04-24 15:54 Mattias Gaertner Fixed in Revision => 49256.