identifier should not contain "'" character
improve type error message