diff --git a/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs b/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs index 446f1a2a..c3c386e4 100644 --- a/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs +++ b/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs @@ -31,7 +31,7 @@ public override Registration Build() { Type type = typeof(SystemInstanceProvider<>).MakeGenericType(ImplementationType); var provider = (IInstanceProvider)Activator.CreateInstance(type, parameters); - return new (ImplementationType, Lifetime, InterfaceTypes, provider); + return new Registration(ImplementationType, Lifetime, InterfaceTypes, provider); } public SystemRegistrationBuilder IntoGroup() where T : ComponentSystemGroup {