Open
Description
This works as expected:
julia> var"#foo#bar"() = throw(ArgumentError("oops"));
julia> qwer() = var"#foo#bar"();
julia> qwer()
ERROR: ArgumentError: oops
Stacktrace:
[1] var"#foo#bar"()
@ Main ./REPL[4]:1
[2] qwer()
@ Main ./REPL[5]:1
[3] top-level scope
@ REPL[6]:1
But this does not:
julia> var"foo#bar"() = throw(ArgumentError("oops"));
julia> asdf() = var"foo#bar"();
julia> asdf()
ERROR: ArgumentError: oops
Stacktrace:
[1] foo()
@ Main ./REPL[1]:1
[2] asdf()
@ Main ./REPL[2]:1
[3] top-level scope
@ REPL[3]:1
Note that in the second example, the function name does not start with #
, and the stacktrace prints foo()
instead of var"foo#bar"()
.
Metadata
Metadata
Assignees
Labels
No labels