Skip to content

Commit

Permalink
fixed bug in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisk42 committed Apr 23, 2018
1 parent 39c3759 commit 5c06489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enumeration.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def solveForTask_ocaml(_ = None,
# Remove all entries that do not type correctly
# This can occur because the solver tries to infer the type
# Sometimes it infers a type that is too general
badPrograms = [r["program"] for r in solutions if Program.parse(r["program"]).canHaveType(t.request) ]
badPrograms = [r["program"] for r in solutions if not Program.parse(r["program"]).canHaveType(t.request) ]
for b in badPrograms:
eprint("Bad program",b,':',t.request)
solutions = [r for r in solutions if Program.parse(r["program"]).canHaveType(t.request) ]
Expand Down

0 comments on commit 5c06489

Please sign in to comment.