Wrong error for undefined operator in wrong arity context #43

Open
opened 2023-01-15 01:26:18 +01:00 by s452639 · 0 comments
Collaborator

Current behaviour

> !
ERROR Different arity then expected at <repl>:2:1
-----------------------------------------------------------------------
Operator ! expects 2 arguments but you provided 0

  2 | !
> 3!2
ERROR Undefined operator at <repl>:3:2
------------------------------------------------------------
I encountered '!' that looks like operator but it isn't one.

  3 | 3!2

Operators that look familiar to one above:
  !=

Expected behaviour

> !
ERROR Different arity then expected at <repl>:2:1
-----------------------------------------------------------------------
I encountered '!' that looks like operator but it isn't one.

  2 | !

Operators that look familiar to one above:
  !=
> 3!2
ERROR Undefined operator at <repl>:3:2
------------------------------------------------------------
I encountered '!' that looks like operator but it isn't one.

  3 | 3!2

Operators that look familiar to one above:
  !=
## Current behaviour ``` > ! ERROR Different arity then expected at <repl>:2:1 ----------------------------------------------------------------------- Operator ! expects 2 arguments but you provided 0 2 | ! > 3!2 ERROR Undefined operator at <repl>:3:2 ------------------------------------------------------------ I encountered '!' that looks like operator but it isn't one. 3 | 3!2 Operators that look familiar to one above: != ``` ## Expected behaviour ``` > ! ERROR Different arity then expected at <repl>:2:1 ----------------------------------------------------------------------- I encountered '!' that looks like operator but it isn't one. 2 | ! Operators that look familiar to one above: != > 3!2 ERROR Undefined operator at <repl>:3:2 ------------------------------------------------------------ I encountered '!' that looks like operator but it isn't one. 3 | 3!2 Operators that look familiar to one above: != ```
s452639 added the
bug
label 2023-01-15 02:37:17 +01:00
Sign in to join this conversation.
No Label
bug
enhancement
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: s416496/musique#43
No description provided.