Reports incorrect use of patterns in functions.