Skip to content

Commit

Permalink
Fix a bug that ScopedContainerBuilder.Exists to not search two levels…
Browse files Browse the repository at this point in the history
… above
  • Loading branch information
hadashiA committed Apr 28, 2024
1 parent bfc5e58 commit 7195f98
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 7195f98

Please sign in to comment.