Skip to content
Snippets Groups Projects
Unverified Commit a5a4fe20 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Body needs to be escaped as well

parent 01f4b40c
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
......@@ -141,7 +141,7 @@ function _defvar(func_def, getter=nothing)
new_def[:name] = Expr(:., fn_def[:name], QuoteNode(:f))
new_def[:args] = esc.(fn_def[:args])
new_def[:kwargs] = esc.(fn_def[:kwargs])
new_def[:body] = fn_def[:body]
new_def[:body] = esc(fn_def[:body])
new_def[:whereparams] = esc.(fn_def[:whereparams])
return MacroTools.combinedef(new_def)
catch e
......@@ -442,8 +442,12 @@ function scanner_constraints!(bb::AbstractBlock)
try
value = f(bb)
catch e
if e isa VariableNotAvailable
continue
continue
else
rethrow()
end
continue
else
rethrow()
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment