Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNull propagation expression does not allow `!` as a nested operator form #3393
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See dotnet/docs#17988
This means that the only correct parse of
is
(a?.b.c)!.d.e
, which prevents usage of null-forgiving in a chain of null-propagating accesses. To remedy this we could accept!
as an optional token after every simple name in the null-propagating non-terminal.cc @jcouv @gafter