Skip to content

Commit c1767a4

Browse files
committed
esc
1 parent 1f6e15e commit c1767a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/methods.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function number_methods(T, rhs1, rhs2)
1414
end)
1515
end
1616

17+
# TODO: modularize and make another macro?
1718
expr = quote
1819
(f::$(typeof(f)))(a::$T, b::$T) = $rhs2
1920
(f::$(typeof(f)))(a::$T, b::Real) = $rhs2
@@ -32,9 +33,8 @@ function number_methods(T, rhs1, rhs2)
3233
Expr(:block, exprs...)
3334
end
3435

35-
3636
macro number_methods(T, rhs1, rhs2)
37-
number_methods(T, rhs1, rhs2)
37+
number_methods(T, rhs1, rhs2) |> esc
3838
end
3939

4040
@number_methods(Sym, term(f, a), term(f, a, b))

0 commit comments

Comments
 (0)