I’m not sure it’s supported in general, but at least see this thread (with a macro to do it, I didn’t read carefully, may only work in some cases, or info there outdated?):
It seems to be supported in some other languages (so maybe reasonable to think should work in all cases in Julia?):