1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:38:36 -06: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:
Robert Griesemer 2013-11-08 08:55:16 -08:00
parent 50d9adec93
commit 7520cff8d3

View File

@ -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)
}