3 // Copyright 2015 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Issue 10047: gccgo failed to compile a type switch where the switch variable
8 // and the base type of a case share the same identifier.
15 switch t := p.(type) {