]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: improved error message when calling a shadowed builtin
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 27 Feb 2018 18:54:50 +0000 (18:54 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 28 Feb 2018 19:39:52 +0000 (19:39 +0000)
commit1e308fbc1a5cc07c2a587bb56a175a0e2980f2e8
tree6340739ccbae9d2b5966fe219547a30ed4701b6a
parent4b1d704d144181c81317c1b3db587f6aac53224b
cmd/compile: improved error message when calling a shadowed builtin

Otherwise, the error can be confusing if one forgets or doesn't know
that the builtin is being shadowed, which is not common practice.

Fixes #22822.

Change-Id: I735393b5ce28cb83815a1c3f7cd2e7bb5080a32d
Reviewed-on: https://go-review.googlesource.com/97455
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/gc/universe.go
test/fixedbugs/issue22822.go [new file with mode: 0644]