I was initially stumped by why the below test case generated an error, so I fixed the warnings emitted and then traced it to a chunk of code which assumed that this expression was a function declaration in disguise.
@iprofile begin
a = 2
end
While the fix for the actual problem here was straightforward, the only guarantees I offer on the expr->Expr conversion is that looks right and the included test case functions as expected.
I was initially stumped by why the below test case generated an error, so I fixed the warnings emitted and then traced it to a chunk of code which assumed that this expression was a function declaration in disguise.
While the fix for the actual problem here was straightforward, the only guarantees I offer on the expr->Expr conversion is that looks right and the included test case functions as expected.