amber icon indicating copy to clipboard operation
amber copied to clipboard

filters.cr:27:65 Error: unexpected token: Nil

Open kematy opened this issue 4 years ago • 1 comments

$:/mnt/d/crystal/ruby2crystal/ruby2crystal-master$ shards build ruby2crystal --ignore-crystal-version Dependencies are satisfied Building: ruby2crystal Error target ruby2crystal failed to compile: In lib/amber/src/amber/controller/filters.cr:27:65

27 | record Filter, precedence : Symbol, action : Symbol, blk : -> Nil do ^ Error: unexpected token: Nil

kematy avatar Apr 09 '21 03:04 kematy

@kematy -> Nil is valid crystal. See https://play.crystal-lang.org/#/r/b3zj

Not sure what Ruby2Crystal stating this is incorrect.

Can you please elaborate on the reported issue, thank you.

eliasjpr avatar May 10 '21 20:05 eliasjpr