]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: report "undefined: x" instead of "undeclared name: x"
authorRobert Griesemer <gri@golang.org>
Wed, 21 Sep 2022 19:57:48 +0000 (12:57 -0700)
committerRobert Griesemer <gri@google.com>
Mon, 26 Sep 2022 23:54:26 +0000 (23:54 +0000)
commit2da95e0ec80cb7df1f89a7b7f147dde42ad17a19
treec7c7bc40e1ec1337aba8f71a60383b2173fa2138
parentb8d8c9e79f24dedc3c01e4e26d5a885720c479f0
go/types, types2: report "undefined: x" instead of "undeclared name: x"

This matches the compiler's long-standing behavior.

For #55326.

Change-Id: I90696a11f0b7d1f4be95a4b9a6f01844df2a2347
Reviewed-on: https://go-review.googlesource.com/c/go/+/432555
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
21 files changed:
src/cmd/compile/internal/types2/issues_test.go
src/cmd/compile/internal/types2/typexpr.go
src/go/types/issues_test.go
src/go/types/typexpr.go
src/internal/types/testdata/check/constdecl.go
src/internal/types/testdata/check/cycles0.go
src/internal/types/testdata/check/decls0.go
src/internal/types/testdata/check/decls2/decls2a.go
src/internal/types/testdata/check/decls2/decls2b.go
src/internal/types/testdata/check/errors.go
src/internal/types/testdata/check/expr3.go
src/internal/types/testdata/check/issues0.go
src/internal/types/testdata/check/stmt0.go
src/internal/types/testdata/check/vardecl.go
src/internal/types/testdata/fixedbugs/issue39634.go
src/internal/types/testdata/fixedbugs/issue43527.go
src/internal/types/testdata/fixedbugs/issue45635.go
src/internal/types/testdata/fixedbugs/issue49005.go
src/internal/types/testdata/fixedbugs/issue49482.go
src/internal/types/testdata/fixedbugs/issue50929.go
src/internal/types/testdata/fixedbugs/issue54405.go