This PR fixes a bad error message due to elaborating partial syntax with Verso docstrings. When elaborating partial syntax, the elaborator sometimes attempts to add a docstring for a declaration that it didn't parse a name for. The name defaults to anonymous, but inserting the docs for the anonymous name throws a panic about being on the wrong async branch. With this change, the reported error is the expected parser error instead, which is much friendlier.
9 lines
228 B
Text
9 lines
228 B
Text
set_option doc.verso true
|
|
|
|
/-!
|
|
This test checks that the error produced for a docstring without a corresponding declaration is a parser error instead of an internal error or panic from elaborating partial syntax.
|
|
-/
|
|
|
|
/--
|
|
foo
|
|
-/
|