]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: Suggest *T in error for x.(T) if it would work.
authorDaniel Morsing <daniel.morsing@gmail.com>
Sat, 1 Sep 2012 17:52:55 +0000 (13:52 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 1 Sep 2012 17:52:55 +0000 (13:52 -0400)
commit1c2021ca142677fbfbbea950dd5a35986d86e678
tree04035afbc24479e8d14c446c1ffd16cd54ecb299
parent8f3c2055bd17c08d82f1ea56299802e476788307
cmd/gc: Suggest *T in error for x.(T) if it would work.

Accomplished by synchronizing the formatting of conversion errors between typecheck.c and subr.c

Fixes #3984.

R=golang-dev, remyoudompheng, rsc
CC=golang-dev
https://golang.org/cl/6500064
src/cmd/gc/typecheck.c
test/interface/explicit.go