dotnet / dotnet/sdk

Movement of clauses in an inheritance

Open
#43,095 4 comments 0 reactions 0 assignees View on GitHub
Area-WebSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

I'm trying to make the following inheritance.

`
public class A
{
public IEnumerable Method(IEnumerable elements) where T : SomeInterface
`

`
public class B : A where T : SomeInterface
{
public IEnumerable Method(IEnumerable elements)
`

It seems to me that semantically this inheritance is compatible and admissible since the type of data is the same and maintains the same clauses.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.