aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-06-19 10:35:09 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-06-19 10:35:09 +0000
commit0908dac05b719cbc5d6fccdc7d71a82b82a06cea (patch)
tree6447a913d1991866a07298bbb0dfbc2ec73d25fd
parenta7a3a84b9c1de53cd8076521fe5db31af73088ca (diff)
Fixing printing of @f with no arguments
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15448 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--interp/constrextern.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/interp/constrextern.ml b/interp/constrextern.ml
index a40c32048..c90bbf4f8 100644
--- a/interp/constrextern.ml
+++ b/interp/constrextern.ml
@@ -591,10 +591,10 @@ let extern_global loc impl f =
CRef f
let extern_app loc inctx impl (cf,f) args =
- if args = [] (* maybe caused by a hidden coercion *) then
- extern_global loc impl f
- else
- if not !Constrintern.parsing_explicit &&
+ if args = [] then
+ (* If coming from a notation "Notation a := @b" *)
+ CAppExpl (loc, (None, f), [])
+ else if not !Constrintern.parsing_explicit &&
((!Flags.raw_print or
(!print_implicits & not !print_implicits_explicit_args)) &
List.exists is_status_implicit impl)