File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
typed-racket-lib/typed-racket/typecheck
typed-racket-test/external Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 317317 (attribute opt.value))
318318 (opt-convert fun-type required-pos optional-pos optional-supplied?)]
319319 [_ #f ]))
320- (if conv-type
321- (begin (tc-expr/check/type #'fun conv-type) (fix-results expected))
322- (tc-expr/check form #f ))]
320+ (cond
321+ [conv-type
322+ (tc-expr/check/type #'fun conv-type)
323+ (fix-results expected)]
324+ [else (tc-expr/check form #f )])]
323325 [(~and _:kw-lambda^
324326 (let-values ([(f) fun])
325327 (let-values _
Original file line number Diff line number Diff line change 337337 )))
338338 (or both-failed?
339339 (and (not racket-failed?)
340- (if (same-result? racket-result racketbc-result)
341- #t
342- ( begin (printf " not same as bc: racketcs: ~s racketbc: ~s\n "
343- racket-result racketbc-result)
344- #f ) ))))
340+ (cond
341+ [(same-result? racket-result racketbc-result) #t ]
342+ [ else
343+ (printf " not same as bc: racketcs: ~s racketbc: ~s\n " racket-result racketbc-result)
344+ #f ] ))))
345345
346346(define num-exceptions 0 )
347347
You can’t perform that action at this time.
0 commit comments