]> Cypherpunks repositories - gostls13.git/commit
test: additional generic type switch test coverage
authorMatthew Dempsky <mdempsky@google.com>
Mon, 7 Mar 2022 10:27:35 +0000 (02:27 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 7 Mar 2022 13:47:58 +0000 (13:47 +0000)
commitd168c4f29682e032a14bb8f5ca23af08a6834635
treecd1fa3bc6e7c65acb544d231f02a2f72d543d5e7
parent0e2f1abf5b764a4a3928a2f4f050144063c46a93
test: additional generic type switch test coverage

None of the current generic type switch test cases exercise type
switches where the instantiated case is an interface type.

Change-Id: I9272fa61b8dde1fe1a3702d524d4f40253ef19b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/390354
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
test/typeparam/typeswitch1.go
test/typeparam/typeswitch1.out
test/typeparam/typeswitch2.go
test/typeparam/typeswitch2.out
test/typeparam/typeswitch3.go
test/typeparam/typeswitch3.out
test/typeparam/typeswitch4.go
test/typeparam/typeswitch4.out