Closed dennisjbell closed 7 years ago
Thanks for the report. I guess I know, there the problem is, and we'll try to fix it as soon as I have some free time:)
@greyblake Not sure if you saw, but this commit ^ fixes this issue.
That is fixed, thank you @jwoertink !
While I was pleasantly surprised that icr supported multiline blocks, there does seem to be some lingering issues. Specifically, I have found that if your first usage of a variable in a block is assigning that variable using the same variable in the RHS, regardless of that variable already being assigned outside the block, it causes an error:
As you can see, doing it all in a single line has no issue.
I'm assuming this is because icr is detecting that you're in a block and trying to validate the inner code stand-alone. If this is the case, I would recommend simply not validating until the outer-most block is exited.