diff options
| author | Jason Gross | 2018-08-31 17:01:43 -0400 |
|---|---|---|
| committer | Jason Gross | 2018-08-31 20:05:55 -0400 |
| commit | 17cb475550a0f4efe9f3f4c58fdbd9039f5fdd68 (patch) | |
| tree | 7a9ef8ae3a878dd1e29a176d45c552da006379fb /doc | |
| parent | 31d58c9ee979699e733a561ec4eef6b0829fe73a (diff) | |
Give a proper error message on num-not in functor
Numeral Notations are not well-supported inside functors. We now give a
proper error message rather than an anomaly when this occurs.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/sphinx/user-extensions/syntax-extensions.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/sphinx/user-extensions/syntax-extensions.rst b/doc/sphinx/user-extensions/syntax-extensions.rst index 886ca0472a..b46382dbbf 100644 --- a/doc/sphinx/user-extensions/syntax-extensions.rst +++ b/doc/sphinx/user-extensions/syntax-extensions.rst @@ -1462,6 +1462,18 @@ Numeral notations concrete numeral expressed as a decimal. They may not return opaque constants. + .. exn:: Cannot interpret in @scope because @ident could not be found in the current environment. + + The inductive type used to register the numeral notation is no + longer available in the environment. Most likely, this is because + the numeral notation was declared inside a functor for an + inductive type inside the functor. This use case is not currently + supported. + + Alternatively, you might be trying to use a primitive token + notation from a plugin which forgot to specify which module you + must :g:`Require` for access to that notation. + .. exn:: Syntax error: [prim:reference] expected after 'Notation' (in [vernac:command]). The type passed to :cmd:`Numeral Notation` must be a single |
