-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
type: clarityWhile not technically incorrect, the Standard is potentially confusingWhile not technically incorrect, the Standard is potentially confusing
Milestone
Description
[This issue was spun-off from Issue #1378 sub-issue 7.]
In 23.5.6.2, "The CallerLineNumber attribute,", we have the following:
The attribute
System.Runtime.CompilerServices.CallerLineNumberAttributeis allowed on optional parameters when there is a standard implicit conversion (§10.4.2) from the constant valueint.MaxValueto the parameter’s type. This ensures that any non-negative line number up to that value can be passed without error.
However, int.MaxValue is not part of this specification. How might we reword this normative text to get around that? Or might we add the minima/maxima constants for the built-in types?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: clarityWhile not technically incorrect, the Standard is potentially confusingWhile not technically incorrect, the Standard is potentially confusing