RegisterType with just interface type causes EActivatorException when resolving

Issue #240 resolved
Stefan Glienke repo owner created an issue

Following code passes the Build call but raises EActivatorException with message 'Unsatisfied constructor on type: ITest'.

type
  ITest = interface
    ['{0541D06C-3C1B-40B6-923F-AA715713CDB9}']
  end;

begin
  GlobalContainer.RegisterType<ITest>;
  GlobalContainer.Build;
  GlobalContainer.Resolve<ITest>;

It should raise an error on Build telling that the type is not properly registered.

Comments (2)

  1. Log in to comment