-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Test plan for "numeric IntPtr" #60578
Comments
dotnet-issue-labeler
bot
added
the
untriaged
Issues and PRs which have not yet been triaged by a lead
label
Apr 5, 2022
jcouv
removed
the
untriaged
Issues and PRs which have not yet been triaged by a lead
label
Apr 5, 2022
/cc @SamMonoRT |
This was referenced Apr 21, 2022
Merged
This was referenced May 10, 2022
This was referenced May 19, 2022
Feature was merged into 17.3p2 |
Closing as completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Championed issue: dotnet/csharplang#6065
Speclet: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-11.0/numeric-intptr.md
Compiler
IsNativeIntegerType
CreateNativeIntegerTypeSymbol()
TargetFramework.Net70
and use that for our tests (issue Add TargetFramework.Net70 #61463)-langversion
[NativeInteger]
attributes emittedRetargetingFromNonNumericToNumericIntPtrCorlib
andRetargetingFromNumericIntPtrToNonNumericCorlib
)const
allowedswitch
value>>>
(seeUnsignedRightShift
)checked
operator+ and operator- with IntPtr/UIntPtrBCL
RuntimeFeature.NumericIntPtr
member for C# 11 runtime#69322)System.IntPtr
andSystem.UIntPtr
(needs to include>>>
) (not applicable)Productivity
SemanticClassifierTests.NativeInteger
)MetadataAsSource.MetadataAsSourceTests+CSharp.TestNativeInteger
)UseExplicitTypeTests.InNativeIntIntrinsicType
, this should follow the preference for built-in types)using x = System.IntPtr;
should not simplify tonint
IntPtr
tonint
if that option is set<see cref="nint"/>
,<see cref="System.IntPtr"/>
(completion issue, should offer to simplify tonint
)nint x = default(nint);
to eithernint x = default;
ornint x = 0;
Relates to test plan for native ints: #38821
Relates to statics in interfaces and numerics design: https://github.com/dotnet/designs/blob/main/accepted/2021/statics-in-interfaces/README.md
The text was updated successfully, but these errors were encountered: