dotnet / dotnet/csharpstandard

15.2.5 Effective base class documentation is really confusing

Open
#129 7 comments 0 reactions 0 assignees View on GitHub
type: clarity
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

I'm having a hard time understanding the effective base class spec in various ways:
- "For each constraint of T that is a struct-type" - how is that feasible? Ditto enum types and delegate types.
- "If the type parameter is a method type parameter whose constrains are inherited from the base method the effective base class is calculated after type substitution" - substitution of what? An example would really help here
- "A type parameter is known to be a reference type if it has the reference type constraint or its effective base class is not object or System.ValueType" - what about System.Enum, which is included in the definition of R earlier on...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.