# E4162

Local parameter is not function.

`#locals` is an attribute that aims to inline the given function parameter. This
error is raised when the given parameter is not a function.

## Erroneous example

```{literalinclude} /sources/error_codes/4162_error/top.mbt
:language: moonbit
```

## Suggestion

Apply `locals` to local functions only.

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