E3102 Types Errors

Types

function '%s' returns a func type; func references cannot be assigned from function return values. Use '()func_name' or 'ref(func_name)' to create a func reference

When this occurs

This error is triggered when: function '%s' returns a func type; func references cannot be assigned from function return values. use '()func_name' or 'ref(func_name)' to create a func reference

Example error message

error[E3102]: function '%s' returns a func type; func references cannot be assigned from function return values. Use '()func_name' or 'ref(func_name)' to create a func reference

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.