diff options
Diffstat (limited to 'libgo/go/go/types/stmt.go')
-rw-r--r-- | libgo/go/go/types/stmt.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/go/types/stmt.go b/libgo/go/go/types/stmt.go index abd9d05..c1593bb 100644 --- a/libgo/go/go/types/stmt.go +++ b/libgo/go/go/types/stmt.go @@ -249,7 +249,7 @@ L: // look for duplicate types for a given value // (quadratic algorithm, but these lists tend to be very short) for _, vt := range seen[val] { - if Identical(v.typ, vt.typ) { + if check.identical(v.typ, vt.typ) { check.errorf(v.pos(), "duplicate case %s in expression switch", &v) check.error(vt.pos, "\tprevious case") // secondary error, \t indented continue L @@ -270,7 +270,7 @@ L: // look for duplicate types // (quadratic algorithm, but type switches tend to be reasonably small) for t, pos := range seen { - if T == nil && t == nil || T != nil && t != nil && Identical(T, t) { + if T == nil && t == nil || T != nil && t != nil && check.identical(T, t) { // talk about "case" rather than "type" because of nil case Ts := "nil" if T != nil { |