Skip to content

Commit

Permalink
Merge pull request #663 from hadashiA/ku/fix-parent-search
Browse files Browse the repository at this point in the history
Fix a bug that ScopedContainerBuilder.Exists to not search two levels above
  • Loading branch information
hadashiA authored Apr 28, 2024
2 parents bfc5e58 + 7195f98 commit e1eb69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VContainer/Assets/VContainer/Runtime/ContainerBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public override bool Exists(Type type, bool includeInterfaceTypes = false, bool
var next = parent;
while (next != null)
{
if (parent.TryGetRegistration(type, out var registration))
if (next.TryGetRegistration(type, out var registration))
{
if (includeInterfaceTypes || registration.ImplementationType == type)
{
Expand Down

0 comments on commit e1eb69a

Please sign in to comment.