You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. First of all thank you for this brilliant library :)
Today I discovered the following little issue when trying to register a service like the following
[RegisterScoped]publicclassService:IService<Input,string?>;
public class Input :IInput<string?>;
public interface IService<TInput,TOutput>whereTInput:IInput<TOutput>;
public interface IInput<TOutput>;
Injectio.g.cs(25,45): Error CS8631 : The type 'ServiceType' cannot be used as type parameter 'TIn' in the generic type or method 'IService<TIn, TOut>'. Nullability of type argument 'ServiceType' doesn't match constraint type 'IType<string>'.
Sure enough it can be solved by disabling the TreatWarningsAsErros flag temporary. But I think the problem exists because the used SymbolDisplayFormat.FullyQualifiedFormat is lacking the SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier flag...
The text was updated successfully, but these errors were encountered:
Hi there. First of all thank you for this brilliant library :)
Today I discovered the following little issue when trying to register a service like the following
Usually I am working in an environment with
And I am getting the following error
Sure enough it can be solved by disabling the
TreatWarningsAsErros
flag temporary. But I think the problem exists because the usedSymbolDisplayFormat.FullyQualifiedFormat
is lacking theSymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier
flag...The text was updated successfully, but these errors were encountered: