]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: use clearer error message for stuct literal
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 9 Sep 2020 04:09:01 +0000 (11:09 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 12 Sep 2020 08:31:49 +0000 (08:31 +0000)
commit2c95e3a6a8377ca9c72608c25b4cf2506baf782f
treee8696bf16d352c026cf84e0cab63c53369f67fe8
parentd7384f36121d52191097af50d6dc12c0eb08fd75
cmd/compile: use clearer error message for stuct literal

This CL changes "T literal.M" error message to "T{...}.M". It's clearer
expression and focusing user on actual issue.

Updates #38745

Change-Id: I84b455a86742f37e0bde5bf390aa02984eecc3c9
Reviewed-on: https://go-review.googlesource.com/c/go/+/253677
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
27 files changed:
src/cmd/compile/internal/gc/fmt.go
test/alias2.go
test/ddd1.go
test/escape2.go
test/escape2n.go
test/escape_calls.go
test/escape_field.go
test/escape_iface.go
test/escape_indir.go
test/escape_map.go
test/escape_param.go
test/escape_slice.go
test/escape_struct_param1.go
test/escape_struct_param2.go
test/fixedbugs/issue12006.go
test/fixedbugs/issue13799.go
test/fixedbugs/issue17645.go
test/fixedbugs/issue21709.go
test/fixedbugs/issue23732.go
test/fixedbugs/issue26855.go
test/fixedbugs/issue30898.go
test/fixedbugs/issue31573.go
test/fixedbugs/issue38745.go [new file with mode: 0644]
test/fixedbugs/issue39292.go
test/fixedbugs/issue41247.go
test/fixedbugs/issue7921.go
test/inline_variadic.go