Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
larshum committed Sep 8, 2023
1 parent 97d9246 commit 812582f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/mexpr/type-check.mc
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,8 @@ lang DataTypeCheck = TypeCheck + DataAst + FunTypeAst + ResolveType
else
let msg = join [
"* Invalid type of constructor: ", nameGetStr ident, "\n",
"* The constructor should be given a type A -> B such that B\n",
" determines the constructor type.\n",
"* The constructor should be given type A -> B, where B\n",
" is a fully applied datatype in scope.\n",
"* When type checking the expression\n"
] in
errorSingle [info] msg
Expand Down

0 comments on commit 812582f

Please sign in to comment.