We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
Since the F# 7 release there is a discrepancy between generic and non-generic restrictions, ie
allowed: env: 'T when ILogger<'T> not allowed env: 'T when ILogger
env: 'T when ILogger<'T>
env: 'T when ILogger
Describe the solution you'd like
I propose to add support for non-generic case as well.
Describe alternatives you've considered
We can live with the old syntax env: 'T when 'T:> ILogger Another possible syntax (covering multiple cases) could be env: #ILogger1 and #ILogger2
env: 'T when 'T:> ILogger
env: #ILogger1 and #ILogger2
Additional context
This will allow to be more concise when dealing with a long list of restrictions, for example when implementing dependency injection based on the article https://bartoszsypytkowski.com/dealing-with-complex-dependency-injection-in-f/
The text was updated successfully, but these errors were encountered:
Please create a language suggestion.
Sorry, something went wrong.
#ILogger1 & #ILogger2
No branches or pull requests
Is your feature request related to a problem? Please describe.
Since the F# 7 release there is a discrepancy between generic and non-generic restrictions, ie
allowed:
env: 'T when ILogger<'T>
not allowed
env: 'T when ILogger
Describe the solution you'd like
I propose to add support for non-generic case as well.
Describe alternatives you've considered
We can live with the old syntax
env: 'T when 'T:> ILogger
Another possible syntax (covering multiple cases) could be
env: #ILogger1 and #ILogger2
Additional context
This will allow to be more concise when dealing with a long list of restrictions, for example when implementing dependency injection based on the article https://bartoszsypytkowski.com/dealing-with-complex-dependency-injection-in-f/
The text was updated successfully, but these errors were encountered: