Crystal: Formatter: crash with an if affecting a variable and with a trailing condition

Created on 18 Sep 2018  路  1Comment  路  Source: crystal-lang/crystal

This produces a formatting Error: expecting keyword false or true, notIDENT, a, at :1:4 (Exception)

if a = 0
  a
end if true
bug lang topicformatter

Most helpful comment

I'd go as far as to say that trailing ifs on multi-line expressions shouldn't compile.

>All comments

I'd go as far as to say that trailing ifs on multi-line expressions shouldn't compile.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cjgajard picture cjgajard  路  3Comments

asterite picture asterite  路  3Comments

RX14 picture RX14  路  3Comments

ArthurZ picture ArthurZ  路  3Comments

jhass picture jhass  路  3Comments