try this:

```
function func()
  function _func()
    print('a')
  end
end

func()
_func()
```