fix
This commit is contained in:
parent
ca5058f555
commit
6140448f17
@ -74,6 +74,6 @@ end
|
|||||||
macro ml(ex)
|
macro ml(ex)
|
||||||
@capture(shortdef(ex), ((xs__,) -> body_ ) | (f_(xs__,) = body_)) ||
|
@capture(shortdef(ex), ((xs__,) -> body_ ) | (f_(xs__,) = body_)) ||
|
||||||
error("@ml requires a function definition")
|
error("@ml requires a function definition")
|
||||||
ex = process_anon(:($(xs...) -> $body))
|
ex = process_anon(:($(xs...,) -> $body))
|
||||||
f == nothing ? :($(esc(f)) = $ex) : ex
|
f == nothing ? ex : :($(esc(f)) = $ex)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user