-
Notifications
You must be signed in to change notification settings - Fork 4k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add public API for ref like type parameters #73335
Add public API for ref like type parameters #73335
Conversation
@@ -27,6 +27,7 @@ internal class CodeGenerationTypeParameterSymbol( | |||
public bool HasConstructorConstraint { get; } = hasConstructorConstraint; | |||
public bool HasReferenceTypeConstraint { get; } = hasReferenceConstraint; | |||
public bool HasValueTypeConstraint { get; } = hasValueConstraint; | |||
public bool AllowsByRefLike => false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see CodeGenerationTypeParameterSymbol
is used for example in IMethodSymbolExtensions.RenameTypeParameters
- should we add a real bool allowsByRefLike
parameter to support that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
CodeGenerationTypeParameterSymbol
is used for example inIMethodSymbolExtensions.RenameTypeParameters
- should we add a realbool allowsByRefLike
parameter to support that?
In general we are not required to adjust IDE code
319fc7c
into
dotnet:features/RefStructInterfaces
Related to #73330.