Apologies if this is a double post, my previous reply hasn’t yet appeared.
I think the problem only appears in Juno, using the ‘in-line’ evaluation. So in this test instance I have a file with the above function in it. I hit ‘shift-enter’ with the cursor on the function to ‘evaluate’ it and the error is thrown.
It’s hardly earth-shattering - I just thought I should mention it.