Remove check.FlagsOnlyTypeCheck.

The puffs-gen-foo commands might need to bounds check anyway, to e.g.
generate different code paths depending on whether a u64 typed
expression fits in a usize's range.
This commit is contained in:
Nigel Tao committed 2017-06-18 09:17:58 +10:00
1 parent ae20422754
commit 6904068251
4 files changed
+14 -40

No files matched your search

+2 -2
View File
@@ -97,7 +97,7 @@ func TestCheck(t *testing.T) {
t.Fatalf("compareToPuffsfmt: %v", err)
}
c, err := Check(tm, 0, file)
c, err := Check(tm, file)
if err != nil {
t.Fatalf("Check: %v", err)
}
@@ -194,7 +194,7 @@ func TestConstValues(t *testing.T) {
continue
}
c, err := Check(tm, 0, file)
c, err := Check(tm, file)
if err != nil {
t.Errorf("%q: Check: %v", s, err)
continue