“as ___” is a *postfix* operator (the following type name has to be considered part of the ‘as’.) So there’s only one way to parse that expression as valid Swift, and thus the parser doesn’t even have to look at operator precedence.
In other words, `x as (Int * 100)` isn’t valid Swift syntax, so the parser doesn’t even consider it.
—Jens
···
On Dec 4, 2015, at 3:21 AM, Elena Vilchik <vilchik.elena@gmail.com> wrote:
“as ___” is a *postfix* operator (the following type name has to be
considered part of the ‘as’.) So there’s only one way to parse that
expression as valid Swift, and thus the parser doesn’t even have to look at
operator precedence.
In other words, `x as (Int * 100)` isn’t valid Swift syntax, so the parser
doesn’t even consider it.