Strange syntax, is it ok? or a bug? Please check

image

It compiles properly, and sets system_to": as to

Thanks

If you run the formatter it’s easier to see what’s going on. In that’s there’s prob a msg.system_from= method so it’s all being parsed as like: @system_to = (msg.system_from = (@to = msg.from)), which sets everything to the value of msg.from.

Somewhat related: Inconsistent setter method behavior with Ruby · Issue #7707 · crystal-lang/crystal · GitHub

2 Likes

Thanks, I will run the format tool more often.