File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
typed-racket-lib/typed-racket/typecheck
typed-racket-test/unit-tests Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 6868 (loop (instantiate-poly t (map (λ (n) Univ) ns)))]
6969 ;; This clause should raise an error via the check-below test
7070 [_
71- (cond [;; a redundant test, but it ensures an error message below
72- (not (subtype t (-> prop-type Univ)))
73- (parameterize ([current-orig-stx stx])
74- (check-below t (-> prop-type Univ)))]
75- [else (int-err "get-range-result: should not happen. type ~a prop ~a "
71+ (cond
72+ [(subtype t -Bottom)]
73+ [;; a redundant test, but it ensures an error message below
74+ (not (subtype t (-> prop-type Univ)))
75+ (parameterize ([current-orig-stx stx])
76+ (check-below t (-> prop-type Univ)))]
77+ [else (int-err "get-range-result: should not happen. type ~a prop ~a "
7678 t prop-type)])
7779 (ret (Un))])))
7880
Original file line number Diff line number Diff line change 36733673 [symbol? (lambda (x) (symbol->string x))])
36743674 (raise 'foo ))
36753675 #:ret (tc-ret -String)]
3676+ [tc-err
3677+ (with-handlers ([exn:fail? (values #f #f )]) (values #t #t ))
3678+ #:ret (tc-ret (list -True -True))
3679+ #:msg #rx"expected single value, got multiple " ]
3680+ [tc-e
3681+ (with-handlers ([exn:fail? (error 'hi "error " )]) #t )
3682+ -True]
36763683
36773684 [tc-err
36783685 (raise (λ ([x : Number]) (add1 x)))]
You can’t perform that action at this time.
0 commit comments