]> Cypherpunks repositories - gostls13.git/commit
test: improve generic type assertion test
authorMatthew Dempsky <mdempsky@google.com>
Mon, 1 Aug 2022 20:23:36 +0000 (13:23 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 1 Aug 2022 20:44:41 +0000 (20:44 +0000)
commitf2a9f3e2e0ce7e582d226ad9a41d3c36b146fc25
treeb5338092330b23acc83b1ff1ce07554d85129fbd
parent27038b70f860e29fdf472ac5fb208b6ad9598c10
test: improve generic type assertion test

The test added in CL 420394 only tested that the type assertions
compiled at all. This CL changes it into a run test to make sure the
type assertions compile and also run correctly.

Updates #54135.

Change-Id: Id17469faad1bb55ff79b0bb4163ef50179330033
Reviewed-on: https://go-review.googlesource.com/c/go/+/420421
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
test/typeparam/issue54135.go