Proposal: Allow keywords as the target of a using-alias statement (specifically, n(u)int) #2982
Replies: 2 comments
-
Specifically, this is interesting for Existing rules
New RuleThis rule is inserted just before the final namespace_or_type_name is undefined:
Updated Rules
|
Beta Was this translation helpful? Give feedback.
-
@333fred that approach to the spec doesn't work, as these keywords are not identifiers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In existing corefx code we have interop aliases like
In some cases it may be more desirable to use the
nint
type, and unless the using-alias statement allows the keywords (or attributes) it's not possible to get nint instead of System.IntPtr.cc: @tannergooding @cston @333fred
Beta Was this translation helpful? Give feedback.
All reactions