E5008 Runtime Errors

wrong-argument-count

incorrect number of arguments

When this occurs

`foo(1, 2)` when foo takes 3

Example error message

error[E5008]: wrong number of arguments: expected 3, got 2

How to fix

Pass the correct number of arguments as defined in the function signature.

Related errors