]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use 'not defined' rather than 'unnamed' in error message
authorRobert Griesemer <gri@golang.org>
Thu, 10 May 2018 18:20:35 +0000 (11:20 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 10 May 2018 19:32:01 +0000 (19:32 +0000)
commitb9c8e870d14775a02c6e87ca0344f623f7cab5f0
treefe97d341b9c1642955dafa34ab37e38acf046edc
parent4826d20a0953b3682cf6eedd1e9becb68bbb25e9
cmd/compile: use 'not defined' rather than 'unnamed' in error message

A receiver type may have an (alias type) name and thus be 'named'
even though the name doesn't refer to a defined type. Adjust the
error message to make this clearer.

Change-Id: I969bf8d1ba3db8820f67f6ecd6d5cfe564c5b80d
Reviewed-on: https://go-review.googlesource.com/112638
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/dcl.go