Skip to content

Commit 76a9f9f

Browse files
authored
Fixed Expr issue (#545)
1 parent cdd9ef1 commit 76a9f9f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/constructors.jl

+8-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ function substitute_broadcast(
6767
syms[n] = _ciₙ::Symbol
6868
else
6969
syms[n] = Symbol('%', n)
70-
ciₙ::Expr = _ciₙ::Expr
70+
#ciₙ::Expr = _ciₙ::Expr
71+
if _ciₙ isa Expr
72+
ciₙ = _ciₙ
73+
elseif _ciₙ isa GlobalRef
74+
ciₙ = Expr(:globalref, _ciₙ.mod, _ciₙ.name)
75+
else
76+
error("Unexpected type in ci: $(typeof(_ciₙ))")
77+
end
7178
ciₙargs = ciₙ.args
7279
f = first(ciₙargs)
7380
if ciₙ.head === :(=)

0 commit comments

Comments
 (0)