Hi! I've stumbled to grammar of postfix-self expression:
postfix-self-expression → postfix-expression . self
And it seems very strange to me, how to express something like
Int?.self in this grammar?
It looks like it can be done with some hacks, via literals, identifiers and optional-chaining-expression, for example,
[Int] is primary -> literal -> array-literal -> expression -> postfix -> primary -> identifier, but that seems really weird.
Isn't the grammar just suppose to have option for type?
postfix-self-expression → type . self