From a7617e43c67b712981504476ee87ac477cb2ca12 Mon Sep 17 00:00:00 2001 From: Arad Aral Date: Thu, 28 Oct 2021 13:41:48 +0330 Subject: [PATCH] Made T in IDescriptor and IDescriptorExtension covariant. (#4343) --- .../Types/Types/Descriptors/Contracts/IDescriptorExtension~1.cs | 2 +- .../Core/src/Types/Types/Descriptors/Contracts/IDescriptor~1.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptorExtension~1.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptorExtension~1.cs index e3431540fe0..6f33bb1ab22 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptorExtension~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptorExtension~1.cs @@ -11,7 +11,7 @@ namespace HotChocolate.Types /// Allows for access to the type definition. /// /// The type definition. - public interface IDescriptorExtension : IHasDescriptorContext + public interface IDescriptorExtension : IHasDescriptorContext where T : DefinitionBase { /// diff --git a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptor~1.cs b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptor~1.cs index 3032a34bbf2..058d6d61062 100644 --- a/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptor~1.cs +++ b/src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IDescriptor~1.cs @@ -12,7 +12,7 @@ namespace HotChocolate.Types /// /// The type definition. /// - public interface IDescriptor : IDescriptor where T : DefinitionBase + public interface IDescriptor : IDescriptor where T : DefinitionBase { /// /// Provides access to the underlying configuration. This is useful for extensions.