Can I get the declared return type of a method?

If it’s returning Union{}, that means that the compiler thinks it’ll never return (and will error or loop infinitely). You’re likely passing in the argument tuple wrong.

1 Like