diff options
Diffstat (limited to 'parsing/syntaxerr.ml')
-rw-r--r-- | parsing/syntaxerr.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parsing/syntaxerr.ml b/parsing/syntaxerr.ml index d96b946a8..edaabda12 100644 --- a/parsing/syntaxerr.ml +++ b/parsing/syntaxerr.ml @@ -18,6 +18,7 @@ open Format type error = Unclosed of Location.t * string * Location.t * string + | Applicative_path of Location.t | Other of Location.t exception Error of error @@ -35,5 +36,8 @@ let report_error ppf = function fprintf ppf "%aThis '%s' might be unmatched" Location.print_error opening_loc opening end + | Applicative_path loc -> + fprintf ppf "%aSyntax error: applicative paths of the form F(X).t are not supported when the option -no-app-func is set." + Location.print_error loc | Other loc -> fprintf ppf "%aSyntax error" Location.print_error loc |