-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[C# 14-Fundamentals and reference]: New Feature - VB supports unmanaged
constraint
#44190
Labels
🏁 Release: .NET 10
Work items for the .NET 10 release
dotnet-csharp/svc
in-pr
This issue will be closed (fixed) by an active pull request.
📌 seQUESTered
Identifies that an issue has been imported into Quest.
resolved-by-customer
whats-new/subsvc
Comments
BillWagner
added a commit
to BillWagner/docs
that referenced
this issue
Jan 31, 2025
- Fixes dotnet#44190: Add note that Visual Basic can consume types (defined in C#) that specify the `unmanaged` constraint. - Fixes dotnet#44174: VB Overload resolution respects the OverloadResolutionPriorityAttribute. In these changes, I made the necessary updates for accuracy with the current compiler. Then, I did an edit for style and updated per style. You may want to review the two commits separately to see the semantic changes distinct from the grammar and style changes.
Merged
BillWagner
added a commit
that referenced
this issue
Jan 31, 2025
* Add VB new features - Fixes #44190: Add note that Visual Basic can consume types (defined in C#) that specify the `unmanaged` constraint. - Fixes #44174: VB Overload resolution respects the OverloadResolutionPriorityAttribute. In these changes, I made the necessary updates for accuracy with the current compiler. Then, I did an edit for style and updated per style. You may want to review the two commits separately to see the semantic changes distinct from the grammar and style changes. * edit and freshness pass * word choice * Apply suggestions from code review Co-authored-by: Genevieve Warren <[email protected]> * rework paragraph on `unmanaged` Try to make this restriction more clear. * Update docs/visual-basic/programming-guide/language-features/data-types/generic-types.md Co-authored-by: Genevieve Warren <[email protected]> --------- Co-authored-by: Genevieve Warren <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🏁 Release: .NET 10
Work items for the .NET 10 release
dotnet-csharp/svc
in-pr
This issue will be closed (fixed) by an active pull request.
📌 seQUESTered
Identifies that an issue has been imported into Quest.
resolved-by-customer
whats-new/subsvc
Visual Studio release
17.13.p3
Link to speclet
Link to Pull request
New behavior
Actually merged in VS 17.3.p2
VB now recognizes the
unmanaged
generic constraint, and enforces it. In previous versions, any attempt to use a type with theunmanaged
constraint caused an unexpected and unhelpful error message.Language reference tasks
No response
Everyday C# tasks
No response
Associated WorkItem - 360916
The text was updated successfully, but these errors were encountered: