]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: do not display ~b identifiers in error messages
authorDidier Spezia <didier.06@gmail.com>
Sat, 9 May 2015 17:21:42 +0000 (17:21 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 11 May 2015 17:44:31 +0000 (17:44 +0000)
commit7c0db1b7e23e14f7a9cc0c424f57a57a613846d3
treefe177faec40214a191c6c3ca073acc79a4e11327
parent3475ec7f36b68126310878e611c8594514b98438
cmd/gc: do not display ~b identifiers in error messages

Instead of errors like:

./blank2.go:15: cannot use ~b1 (type []int) as type int in assignment

we now have:

./blank2.go:15: cannot use _ (type []int) as type int in assignment

Less confusing for users.

Fixes #9521

Change-Id: Ieab9859040e8e0df95deeaee7eeb408d3be61c0f
Reviewed-on: https://go-review.googlesource.com/9902
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/gc/fmt.go
test/fixedbugs/issue9521.go [new file with mode: 0644]