summaryrefslogtreecommitdiff
path: root/src/pretty_print_lem.ml
diff options
context:
space:
mode:
authorThomas Bauereiss2018-01-23 19:51:39 +0000
committerThomas Bauereiss2018-01-23 19:53:17 +0000
commit4ec26c81830b26957dfac205eb60b522890fb007 (patch)
treebb862e4d9a08999ff96e360803e3630a5964624c /src/pretty_print_lem.ml
parentc5db705ca228421b4035b4361aba9823750fd67c (diff)
Run tests for Lem shallow embedding
Uses the typechecker tests for now. Also fix two minor bugs in pretty-printer and rewriter uncovered by the tests.
Diffstat (limited to 'src/pretty_print_lem.ml')
-rw-r--r--src/pretty_print_lem.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pretty_print_lem.ml b/src/pretty_print_lem.ml
index a759162e..edddcdd3 100644
--- a/src/pretty_print_lem.ml
+++ b/src/pretty_print_lem.ml
@@ -721,7 +721,9 @@ let doc_exp_lem, doc_let_lem =
| E_field((E_aux(_,(l,fannot)) as fexp),id) ->
let ft = typ_of_annot (l,fannot) in
(match fannot with
- | Some(env, (Typ_aux (Typ_id tid, _)), _) when Env.is_record tid env ->
+ | Some(env, (Typ_aux (Typ_id tid, _)), _)
+ | Some(env, (Typ_aux (Typ_app (tid, _), _)), _)
+ when Env.is_record tid env ->
let fname =
if prefix_recordtype
then (string (string_of_id tid ^ "_")) ^^ doc_id_lem id