]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/exp/types/const.go
libgo: Update to weekly 2011-11-09.
[thirdparty/gcc.git] / libgo / go / exp / types / const.go
index 1ef95d9f952ef955f68d2e53cdd9815af2e01259..048f63bb7d380ebadb59405a5a42e2b371a979f1 100644 (file)
@@ -7,8 +7,8 @@
 package types
 
 import (
-       "big"
        "go/token"
+       "math/big"
        "strconv"
 )
 
@@ -131,7 +131,7 @@ func (x Const) Match(y Const) (u, v Const) {
 // otherwise the result is invalid.
 func (x Const) Convert(typ *Type) Const {
        // TODO(gri) implement this
-       switch x := x.val.(type) {
+       switch x.val.(type) {
        case bool:
        case *big.Int:
        case *big.Rat: