Compile S4D without inlining

Issue #360 closed
Jacek Laskowski created an issue

I turned off automatic inline in the project options and when I try to build the project I get an error in the spring code.

Code inline control = Off

[dcc32 Error] Spring.Events.pas(867): E2506 Method of parameterized type declared in interface section must not use local symbol 'DynArrayHigh'

procedure TNotifyEventImpl<T>.Invoke(sender: TObject; const item: T);
var
  handlers: PMethodArray;
  i: Integer;
begin
  if Enabled then
  begin
    handlers := GetHandlers;
    try
      for i := 0 to DynArrayHigh(handlers) do  <<  ---------- error line
        TNotifyEvent<T>(handlers[i])(sender, item);
    finally
      ReleaseGuard;
    end;
  end;
end;

Comments (1)

  1. Log in to comment