Commit Graph

1 Commits

Author SHA1 Message Date
Zoltan Somogyi
c4dce74bb4 Improve the treatment of promises.
compiler/check_promise.m:
    Fix github issue #50. If a promise is imported from another module,
    do not process it. Processing would require the pred_id/proc_id slots
    in plain_calls to have been filled in by typechecking, but we don't
    invoke the typechecker on imported code.

compiler/assertion.m:
    Improve the documentation of the predicates that test whether
    an assertion falls into a given category of assertion. Provide variants
    of those predicates that work on goals as well as on assert_ids, so later
    we can test whether assertions fall into any of those categories.

    Add an XXX for what I am pretty sure is a bug.

compiler/hlds_module.m:
compiler/make_hlds_passes.m:
compiler/prog_data.m:
compiler/typecheck.m:
    Improve some comments.

tests/valid/github_50.m:
tests/valid/github_50.submodule.m:
    The two-module test case from github, changed to reflect our coding
    standards.

tests/valid/Mmakefile:
    Test that compiling the new test case does not cause a compiler abort.
2018-10-01 06:54:00 +10:00