From 9cbd740cd7e8936a9411528fc5dd4d5ddb0d3c1d Mon Sep 17 00:00:00 2001 From: SimonBoulier Date: Wed, 8 Jan 2020 10:20:20 +0100 Subject: Trailing implicit: Maxime's suggestions --- doc/sphinx/language/gallina-extensions.rst | 2 +- interp/impargs.ml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/sphinx/language/gallina-extensions.rst b/doc/sphinx/language/gallina-extensions.rst index 6be501199d..d85be0646a 100644 --- a/doc/sphinx/language/gallina-extensions.rst +++ b/doc/sphinx/language/gallina-extensions.rst @@ -1728,7 +1728,7 @@ Declaring Implicit Arguments To know which are the implicit arguments of an object, use the command :cmd:`Print Implicit` (see :ref:`displaying-implicit-args`). -.. exn:: Argument id is a trailing implicit, so it can't be declared non maximal. Please use %{ %} instead of [ ]. +.. exn:: Argument @ident is a trailing implicit, so it can't be declared non maximal. Please use %{ %} instead of [ ]. For instance in diff --git a/interp/impargs.ml b/interp/impargs.ml index b22407c2b7..e2c732809a 100644 --- a/interp/impargs.ml +++ b/interp/impargs.ml @@ -646,7 +646,6 @@ let maybe_declare_manual_implicits local ref ?enriching l = if List.exists (fun x -> x.CAst.v <> None) l then declare_manual_implicits local ref ?enriching l -(* TODO: either turn these warnings on and document them, or handle these cases sensibly *) let msg_trailing_implicit id = user_err (strbrk ("Argument " ^ Names.Id.to_string id ^ " is a trailing implicit, so it can't be declared non maximal. Please use { } instead of [ ].")) -- cgit v1.2.3