You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this expression has type Enum, but Enum was expected
To Reproduce
❯ nickel repl
nickel> match { 'a => 1 } 'b
error: dynamic type error
┌─ <repl-input-0>:1:1
│
1 │ match { 'a => 1 } 'b
│ ^^^^^^^^^^^^^^^^^^^^
│ │ │
│ │ evaluated to this
│ this expression has type Enum, but Enum was expected
│
= match expects its argument to be a Enum
Expected behavior
The error is not telling us what the interpreter is actually expecting, mentioning 'a and/or 'b.
Environment
x86_64 GNU/Linux
nickel-lang-cli nickel 1.4.0 (rev cargore)
The text was updated successfully, but these errors were encountered:
Describe the bug
When enum do not match up the error is ... bad?
To Reproduce
Expected behavior
The error is not telling us what the interpreter is actually expecting, mentioning
'a
and/or'b
.Environment
The text was updated successfully, but these errors were encountered: