Skip to content

Commit d4ed374

Browse files
committed
when you cant find the bug, consider whether things are working as intended
1 parent abd8919 commit d4ed374

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ dev: install-production
1212
#lm --showalloc SRC/unit-prop-core.lsts > out.txt
1313
#lm --showalloc SRC/unit-ascript-core.lsts > out.txt
1414
#lm --showalloc SRC/index.lsts > out.txt
15-
lm tests/promises/typechecking/misc-linear-error-1.lsts
15+
lm tests/promises/typechecking/misc-linear-error-1.lsts > out.txt
16+
gcc tmp.c;
17+
./a.out
1618

1719
build: compile-production
1820
time env $(LSTSFLAGS) ./production --v23 --c -o deploy1.c SRC/index.lsts

SRC/typecheck-infer-expr.lsts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ let std-infer-expr(tctx: Maybe<TypeContext>, term: AST, is-scoped: Bool, used: I
201201
}};
202202
);
203203
Glb{key1=key, val=val} => (
204+
print("Glb \{term}\n");
204205
let prev-count-history = safe-alloc-block-count-monotonic-history;
205206
let rough-tt = typeof-term(term);
206207
if rough-tt.is-arrow and not(rough-tt.is-open) and not(rough-tt.is-t(c"TypedMacro",0)) {

tests/promises/typechecking/misc-linear-error-1.lsts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let g(): Nil = (
1010
);
1111

1212
f();
13-
assert( safe-alloc-block-count-monotonic == 0 );
13+
assert( safe-alloc-block-count == 0 );
1414

1515
g();
16-
assert( safe-alloc-block-count-monotonic == 0 );
16+
assert( safe-alloc-block-count == 0 );

0 commit comments

Comments
 (0)