title: How can I write a function which will check if the return type is statically inferable for each called method?
body: <p>I want to write a function which will throw an error if julia is not able to infer a concrete return type for the function. How can I do this without any runtime overhead? </p>