mirror of
https://github.com/golang/go
synced 2024-11-19 02:04:42 -07:00
go.tools/go/types: remove a workaround for 386 bug
R=adonovan CC=golang-dev https://golang.org/cl/23350043
This commit is contained in:
parent
50d9adec93
commit
7520cff8d3
@ -171,11 +171,7 @@ func TestExprs(t *testing.T) {
|
||||
t.Errorf("%s: %s", src, err)
|
||||
continue
|
||||
}
|
||||
// TODO(gri) writing the code below w/o the decl variable will
|
||||
// cause a 386 compiler error (out of fixed registers)
|
||||
decl := file.Decls[0].(*ast.GenDecl)
|
||||
expr := decl.Specs[0].(*ast.ValueSpec).Values[0]
|
||||
str := exprString(expr)
|
||||
str := exprString(file.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0])
|
||||
if str != test.str {
|
||||
t.Errorf("%s: got %s, want %s", test.src, str, test.str)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user