]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: handle interface type parameters in type switches
authorKeith Randall <khr@golang.org>
Mon, 9 Aug 2021 18:40:46 +0000 (11:40 -0700)
committerKeith Randall <khr@golang.org>
Tue, 10 Aug 2021 01:56:50 +0000 (01:56 +0000)
commit2fbf6aafe7de215a1d03e14aa488aa8fd31f56a7
tree41d56baf35963eed63ccefc51cb85e71c318a8f5
parente4cfa2f6dad8c73e98a4149948ded424df9c8501
[dev.typeparams] cmd/compile: handle interface type parameters in type switches

Change-Id: I9bba21a64d7e9f42395b6fcdf8aa3ca01cf131dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/340912
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/typeswitch6.go [new file with mode: 0644]
test/typeparam/typeswitch6.out [new file with mode: 0644]
test/typeparam/typeswitch7.go [new file with mode: 0644]
test/typeparam/typeswitch7.out [new file with mode: 0644]