E2079 Syntax Errors
Syntax
'nil' is a value, not a type; for a function that returns nothing, omit the '-> ...' clause
When this occurs
This error is triggered when: 'nil' is a value, not a type; for a function that returns nothing, omit the '-> ...' clause
Example error message
error[E2079]:
'nil' is a value, not a type; for a function that returns nothing, omit the '-> ...' clause
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.