cmd/compile: use  yyerrorl(n.Pos, ...) in typecheckdef
cmd/compile: use  yyerrorl(n.Pos, ...) in typecheckdef

n.Pos.IsKnown() is not needed because it is performed in setlineno.

toolstash-check passed.

Updates #19683.

Change-Id: I34d6a0e6dc9970679d99e8f3424f289ebf1e86ba
Reviewed-on: https://go-review.googlesource.com/114915
Run-TryBot: Yury Smolsky <f26331c55f2e9b348f65eb11cafdbe38d0f7ac5e@smolsky.by>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Robert Griesemer <a6752097faebf1f02d80107d77a9be009089afe3@golang.org>

CAFxX/go,akutz/go,cloudflare/go,nawawi/go,josharian/go,cloudflare/go,nawawi/go,akutz/go,cloudflare/go,golang/go,CAFxX/go,golang/go,josharian/go,nawawi/go,golang/go,CAFxX/go,josharian/go,josharian/go,CAFxX/go,golang/go,josharian/go,nawawi/go,golang/go,akutz/go,golang/go,akutz/go,josharian/go,nawawi/go,CAFxX/go,cloudflare/go,CAFxX/go,cloudflare/go,CAFxX/go,cloudflare/go,akutz/go,cloudflare/go,akutz/go,josharian/go,golang/go,nawawi/go,akutz/go,nawawi/go,nawawi/go,cloudflare/go,CAFxX/go,golang/go,akutz/go,josharian/go