kevinlawler / kona

Open-source implementation of the K programming language
ISC License
1.36k stars 138 forks source link

parentheses change behavior #551

Closed bakul closed 4 years ago

bakul commented 4 years ago

Try this in a fresh instance:

% ./k
  (a)=a:12
value error
a
^
parse error

But a=a:12 evaluates to 1. On k3 both evaluate to 1.

tavmem commented 4 years ago

This is a regression. It arose as a side effect of fixing issue #383 on Mar 28, 2016 in commit 95e2cd321ca0783b367b5718a096b01de2ff1ba8

It works OK in commit 4a3fcf64014851a97925eb30a1e851270bcb55fb from Mar 23, 2016.