Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
d5b570cd
Commit
d5b570cd
authored
Oct 08, 2012
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build: use temporary variable to avoid compiler error
R=r CC=golang-dev
https://golang.org/cl/6612066
parent
0d947420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
types_test.go
src/pkg/exp/types/staging/types_test.go
+4
-1
No files found.
src/pkg/exp/types/staging/types_test.go
View file @
d5b570cd
...
...
@@ -169,7 +169,10 @@ func TestExprs(t *testing.T) {
t
.
Errorf
(
"%s: %s"
,
src
,
err
)
continue
}
expr
:=
pkg
.
Files
[
filename
]
.
Decls
[
0
]
.
(
*
ast
.
GenDecl
)
.
Specs
[
0
]
.
(
*
ast
.
ValueSpec
)
.
Values
[
0
]
// TODO(gri) writing the code below w/o the decl variable will
// cause a 386 compiler error (out of fixed registers)
decl
:=
pkg
.
Files
[
filename
]
.
Decls
[
0
]
.
(
*
ast
.
GenDecl
)
expr
:=
decl
.
Specs
[
0
]
.
(
*
ast
.
ValueSpec
)
.
Values
[
0
]
str
:=
exprString
(
expr
)
if
str
!=
test
.
str
{
t
.
Errorf
(
"%s: got %s, want %s"
,
test
.
src
,
str
,
test
.
str
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment