Closed guyvdbroeck closed 3 years ago
Yes, the macro forgets about type parameters. I should have a fix today.
somewhat related, i noticed that anonymous arguments like test(::Transformer, x)
also trip up the macro
somewhat related, i noticed that anonymous arguments like
test(::Transformer, x)
also trip up the macro
The macro checks that it is applied to a function definition. How should @rule test(::Transformer,x)
(without a definition) behave?
96271a9 (version 0.4.3) fixes original bug.
Awesome, thanks! With the other error I mean:
julia> @rule test(::Transformer,x) =0
ERROR: LoadError: BoundsError: attempt to access 1-element Vector{Any} at index [2]
Stacktrace:
[1] getindex(A::Vector{Any}, i1::Int64)
@ Base ./array.jl:801
[2] var"@rule"(__source__::LineNumberNode, __module__::Module, s::Any)
@ Lerche ~/.julia/packages/Lerche/hvADG/src/utils.jl:188
in expression starting at REPL[3]:1```
It looks like both issues have been fixed by the latest update.