E5030 Usage Errors

Usage

cannot call the return value of '%s' directly; func references must be created with '()func_name' or 'ref(func_name)' before calling

When this occurs

This error is triggered when: cannot call the return value of '%s' directly; func references must be created with '()func_name' or 'ref(func_name)' before calling

Example error message

error[E5030]: cannot call the return value of '%s' directly; func references must be created with '()func_name' or 'ref(func_name)' before calling

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.