-
Notifications
You must be signed in to change notification settings - Fork 92
Description
See #757 (comment)
In 6.2.5, this paragraph can be hard to understand:
If the following token is among this list, or an identifier in such a context, then the type_argument_list is retained as part of the simple_name, member_access or pointer_member-access and any other possible parse of the sequence of tokens is discarded. Otherwise, the type_argument_list is not considered to be part of the simple_name, member_access or pointer_member_access, even if there is no other possible parse of the sequence of tokens. (These rules are not applied when parsing a type_argument_list in a namespace_or_type_name §7.8.)
also See #757 (comment)
In 12.12, the grammar for relational and type testing operators has some ambiguities related to is
type and is
pattern:
- A nullable type is allowed for
is type
, but not foris pattern
. - For
is pattern
, the pattern expression must be the same or higher precedence than shift_expression.
This was deferred from the C# 7.3 standard.