timholy/Profile.jl — pull request #12 by fundamental (2013-04-11 02:18:15+00:00)
Title: Deprecated Warnings & Type Errors

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.