diff --git a/VContainer/Assets/VContainer/Runtime/ContainerBuilder.cs b/VContainer/Assets/VContainer/Runtime/ContainerBuilder.cs index bfa87d4d..22969228 100644 --- a/VContainer/Assets/VContainer/Runtime/ContainerBuilder.cs +++ b/VContainer/Assets/VContainer/Runtime/ContainerBuilder.cs @@ -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) {