]> Cypherpunks repositories - gostls13.git/commit
test: test method expressions promoted to derived types
authorMatthew Dempsky <mdempsky@google.com>
Tue, 9 Aug 2022 05:00:30 +0000 (22:00 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 9 Aug 2022 16:42:12 +0000 (16:42 +0000)
commit60d3276a944c3a6a65a8e462bc432d1e9cb040ee
tree46c21b8f5b0a71a97541c82ce82291401e30b96e
parentf93b668842ae3d6e96d7348dbd05592811ce3990
test: test method expressions promoted to derived types

This CL adds a test that method expressions where the receiver type is
a derived type and embeds a promoted method work correctly.

Change-Id: I2e7c96007b6d9e6f942dc14228970ac508ff5c15
Reviewed-on: https://go-review.googlesource.com/c/go/+/422199
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
test/run.go
test/typeparam/mdempsky/20.go [new file with mode: 0644]