Skip to content

Commit 1c5827d

Browse files
committed
1 parent b3698af commit 1c5827d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function gensym_ids(ex)
173173
syms = Dict{Symbol, Symbol}()
174174
prewalk(ex) do x
175175
isgensym(x) ?
176-
Base.@get!(syms, x, Symbol(gensymname(x), "_", counter+=1)) :
176+
get!(()->Symbol(gensymname(x), "_", counter+=1), syms, x) :
177177
x
178178
end
179179
end
@@ -194,7 +194,7 @@ function alias_gensyms(ex)
194194
left = copy(animals)
195195
syms = Dict{Symbol, Symbol}()
196196
prewalk(ex) do x
197-
isgensym(x) ? Base.@get!(syms, x, pop!(left)) : x
197+
isgensym(x) ? get!(()->pop!(left), syms, x) : x
198198
end
199199
end
200200

0 commit comments

Comments
 (0)