Closed ktaragorn closed 7 years ago
Is the .+
in /^[A-Z]+([a-z_0-9].+)?\s*\={1}[^=~]/
intentional or a bug? Seems like should be +
also i think \={1}
should be just =
Ill try to create a PR into this tomorrow
Yup, seems to be introduced in https://github.com/crystal-community/icr/pull/59.
Test case -
Reference.new == Reference.new
Even though this is an equality check, this is being caught as aconstant_assignment
command and so is wrongly treated. You do not get the output of the command.