You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a result of two aspects of the language specification:
x + y if one of the arguments is a string is defined to perform string concatenation, converting the other argument to a string if necessary.
x { ... } is defined to expand to x + { ... } as part of desugaring (see the spec for full definition).
I agree it is an unintuitive behaviour in this case. However, fixing it would be a language change that might have unintended effects, so it needs some further design consideration.
Using
with following expression:
expecting syntax error, comma expected, but got
Works in playground too.
Found while generated xml from incorrect input that was like
which was handled incorrectly before xml-transform to
while expected
The text was updated successfully, but these errors were encountered: