Skip to content

Commit

Permalink
Improved error message for unused type alias arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarin Heffes committed Oct 17, 2024
1 parent 57366b7 commit 1aba695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typechecker/define-type.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
(tc-note parsed-type "Type alias ~S defines unused type variable~P ~{:~A~^ ~}"
(parser:identifier-src-name (parser:type-definition-name parsed-type))
number-of-unused-variables
(mapcar (lambda (str) (subseq str 0 (- (length str) 5)))
(mapcar (lambda (str) (subseq str 0 (- (1+ (length str) (position #\- (reverse str))))))
(mapcar #'string unused-variables)))))))

(defun infer-define-type-scc-kinds (types env)
Expand Down

0 comments on commit 1aba695

Please sign in to comment.