In the example below we were producing the error message
"Assignment to constant 'f' is not allowed":
function f() result(r) f = 1.0 end
This changes it to a more helpful message when the LHS is a subprogram
name and also mentions the function result name when it's a function.