cannot convert return type int to return type ()->int

By | August 1, 2016

cannot convert return type int to return type ()->int

If you are working with nested functions and you face such error while returning a function then see if you haven’t used parentheses after function name after return.