3
// Copyright 2009 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.
10
// 6g used to compile these as two different
11
// hash codes so it missed the duplication
12
// and worse, compiled the wrong code
15
switch v := x.(type) {
17
case func(f int): // ERROR "duplicate"