error handling for local variable used as an inner function parameter #26814
Labels
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
domain:error handling
Handling of exceptions by Julia or the user
I am going to guess that initializers are not allowed to be local. however, I am neither certain that this is the problem, nor is this a big problem. it can be easily cured by moving the initializer out of the function.
if I am correct, and one should not create function-local initializers, then may I suggest a better error message that says precisely this? the obscure error is just not informative enough, and this can probably be easily detected.
if I am incorrect, oh well, then I am just, as often, confused.
The text was updated successfully, but these errors were encountered: