where TInstaller derives from TBaseInstaller, which derives from MonoInstaller, and TBaseInstaller gets TParam injected, an error like
ZenjectException: Assert hit! Could not find match for argument type 'TParam' when injecting into sub container installer 'TInstaller'
will be hit both during validation and runtime.
We are upgrading from 8c63509b8fdff97338d5f8aafb6a6bbe18a12e01 (7.1.0'ish IIRC) to v7.3.1, and when doing something like
where
TInstaller
derives fromTBaseInstaller
, which derives fromMonoInstaller
, andTBaseInstaller
getsTParam
injected, an error likeZenjectException: Assert hit! Could not find match for argument type 'TParam' when injecting into sub container installer 'TInstaller'
will be hit both during validation and runtime.Adding
.Concat(installerInjectables.BaseTypeInfo.AllInjectables)
after https://github.com/svermeulen/Zenject/blob/1dc88aa/UnityProject/Assets/Plugins/Zenject/Source/Providers/SubContainerCreators/SubContainerCreatorByNewPrefabWithParams.cs#L44 solves the issue, but I'm not sure if that's the correct place to do it.If this information isn't enough, I can try and make a minimal repro on request.