Rename ast.Node methods from Foo to AsFoo

This commit is contained in:
Nigel Tao committed 2018-07-01 20:41:21 +10:00
1 parent 12773ce74a
commit ccb78f5db7
21 files changed
+461 -458

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ func TestConstValues(tt *testing.T) {
continue
}
got := body[0].Var().Value().ConstValue()
got := body[0].AsVar().Value().ConstValue()
want := big.NewInt(wantInt64)
if got == nil || want == nil || got.Cmp(want) != 0 {
tt.Errorf("%q: got %v, want %v", s, got, want)