diff options
author | Russ Cox <rsc@golang.org> | 2009-05-08 15:40:14 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-05-08 15:40:14 -0700 |
commit | 11fe8b7e8f91d754ec7f4676f8c3df98d7266dfd (patch) | |
tree | ac8aca82e0cdf34df99f8ef940c5ccd74117e926 /src/lib/go/token/token.go | |
parent | fdee600cb35efb522e7976a5acd95ec3e2c6773b (diff) | |
download | golang-11fe8b7e8f91d754ec7f4676f8c3df98d7266dfd.tar.gz |
implications of stricter type equality:
if both types are named, they must be
the same type (arising from the same
declaration).
R=r,gri
DELTA=44 (21 added, 4 deleted, 19 changed)
OCL=28436
CL=28577
Diffstat (limited to 'src/lib/go/token/token.go')
-rw-r--r-- | src/lib/go/token/token.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/go/token/token.go b/src/lib/go/token/token.go index b031b7f61..b71d0f03d 100644 --- a/src/lib/go/token/token.go +++ b/src/lib/go/token/token.go @@ -19,7 +19,7 @@ const ( ILLEGAL Token = iota; EOF; COMMENT; - + // Identifiers and basic type literals // (these tokens stand for classes of literals) literal_beg; @@ -237,7 +237,7 @@ func (tok Token) String() string { if str, exists := tokens[tok]; exists { return str; } - return "token(" + strconv.Itoa(tok) + ")"; + return "token(" + strconv.Itoa(int(tok)) + ")"; } |