Make type parsing error more informative
This commit is contained in:
parent
92e34ebab9
commit
1dede05549
|
@ -588,7 +588,8 @@
|
|||
(values row-var fields methods)]
|
||||
[(? Mu?)
|
||||
(match-parent-type (unfold parent-type))]
|
||||
[_ (tc-error "expected a class type for #:implements clause")]))
|
||||
[_ (tc-error "expected a class type for #:implements clause, got ~a"
|
||||
parent-type)]))
|
||||
(define-values (super-row-var super-fields super-methods)
|
||||
(match-parent-type parent-type))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user