This PR improves the error message displayed when writing an invalid projection on a free variable of function type.