Skip to content

Commit 93d98bb

Browse files
Fix 1 occurrence of inverted-when
This negated `when` expression can be replaced by an `unless` expression.
1 parent 1cb2698 commit 93d98bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typed-racket-lib/typed-racket/typecheck/error-message.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
(define class/object (if object? "object" "class"))
7878
(match-define (Class: row inits fields methods augments init-rest) c1)
7979
(match-define (Class: row* inits* fields* methods* augments* init-rest*) c2)
80-
(when (not object?)
80+
(unless object?
8181
(when (and (F? row) (not (F? row*)))
8282
(type-mismatch (format "Class with row variable `~a'" row)
8383
(format "Class with no row variable")))

0 commit comments

Comments
 (0)