# E0032

Warning name: `unused_default_value`

Default value of optional argument is unused. This implies at every call site of this function, the optional argument is always explicitly supplied with a value. This means the optional argument can be refactored into a labelled argument.

## Erroneous example

This warning is turned off by default. Enable it with the `warnings` field in
`moon.pkg`:

```{literalinclude} /sources/error_codes/0032_error/moon.pkg
:caption: moon.pkg
:language: moonbit
```

```{literalinclude} /sources/error_codes/0032_error/top.mbt
:language: moonbit
:caption: main.mbt
```

## Suggestion

Turn the optional argument into a labelled argument:

```{literalinclude} /sources/error_codes/0032_fixed/top.mbt
:language: moonbit
```
