Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for unconstrained type parameter annotations#1326

New issue

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
RexJaeschke wants to merge1 commit intodotnet:draft-v9
base:draft-v9
Choose a base branch
Loading
fromRexJaeschke:Add-support-for-unconstrained-type-parameter-annotations

Conversation

RexJaeschke
Copy link
Contributor

I think the following text might be affected by this PR (however, I havenot included any changes to it in this initial Draft PR.)

15.2.5 Type parameter constraints

The class type, reference type constraint, and secondary constraints can include the nullable type annotation. The presence or absence of this annotation on the type parameter indicates the nullability expectations for the type argument:

  • If the constraint does not include the nullable type annotation, the type argument is expected to be a non-nullable reference type. A compiler may issue a warning if the type argument is a nullable reference type.
  • If the constraint includes the nullable type annotation, the constraint is satisfied by both a non-nullable reference type and a nullable reference type.

@RexJaeschkeRexJaeschke added this to theC# 9.0 milestoneMay 9, 2025
@RexJaeschkeRexJaeschke added the type: featureThis issue describes a new feature labelMay 9, 2025
@RexJaeschkeRexJaeschke marked this pull request as draftMay 9, 2025 17:00
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
type: featureThis issue describes a new feature
Projects
None yet
Milestone
C# 9.0
Development

Successfully merging this pull request may close these issues.

1 participant
@RexJaeschke

[8]ページ先頭

©2009-2025 Movatter.jp