]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: delay method value wrapper generation until walk
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 26 Jun 2021 18:31:03 +0000 (01:31 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Sun, 27 Jun 2021 09:38:56 +0000 (09:38 +0000)
commit20a04f60417b60ab5c1ce2dfcdefce1ff57f5914
tree38d14cbbd349e47f2f761979035a032eb2018da9
parent1b995f91a526ff165952218848c3173026a8dc53
[dev.typeparams] cmd/compile: delay method value wrapper generation until walk

As walk already create the wrapper if necessary.

With this change, test/inline.go need to be changed to use
errorcheckwithauto, for matching "inlining call to ..." in autogenerated
position for method value wrapper, since when we don't generate the
wrapper immediately during typecheck.

Change-Id: I9ffbec9ad3c2b7295546976e2fa517336c13c89b
Reviewed-on: https://go-review.googlesource.com/c/go/+/330838
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/typecheck/expr.go
test/inline.go