Swap conditional order
This has no effect on the truth table, but affects side effects. It shouldn't actually matter because `check-all-registered-types` is not called in the TR top-level anyway, but this seems safer.
This commit is contained in:
parent
6f70aaa0fc
commit
cf7b5b79e7
|
@ -74,7 +74,7 @@
|
|||
(free-id-table-remove! the-mapping id))
|
||||
|
||||
(define (finish-register-type id [top-level? #f])
|
||||
(unless (or top-level? (maybe-finish-register-type id))
|
||||
(unless (or (maybe-finish-register-type id) top-level?)
|
||||
(tc-error/expr #:stx id "Duplicate definition for ~a" (syntax-e id)))
|
||||
(void))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user