]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: suppress duplicate type errors
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 4 May 2017 18:43:41 +0000 (11:43 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 4 May 2017 21:53:49 +0000 (21:53 +0000)
commitd62c6c3c39ddc59e3003304f98661598b5fd80de
treeb084ee44e53547a65edf442f63b0bf8964a4e1dc
parent39c07ce9e5311c94880789f19f2f8b49bf1b5241
cmd/compile: suppress duplicate type errors

If we've already complained about a type T,
don't complain again about further expressions
involving it.

Fixes #20245 and hopefully all of its ilk.

Change-Id: Ic0abe8235d52e8a7ac40e3615aea8f3a54fd7cec
Reviewed-on: https://go-review.googlesource.com/42690
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue11614.go
test/fixedbugs/issue20233.go
test/fixedbugs/issue20245.go [new file with mode: 0644]