File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
typed-racket-lib/typed-racket Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 577
577
[_ #f ])
578
578
#f
579
579
;; constrain v to be below T (but don't mention bounds)
580
- (eprintf "hi...........~a ~n " v)
581
580
(define maybe-type-bound (hash-ref (context-type-bounds context) v #f ))
582
581
(if (and maybe-type-bound (subtype maybe-type-bound T obj))
583
582
(singleton maybe-type-bound v (var-demote T (context-bounds context)))
590
589
[_ #f ])
591
590
#f
592
591
(define maybe-type-bound (hash-ref (context-type-bounds context) v #f ))
593
- (eprintf "bye...........~a ~a <: ~a ~n " v S maybe-type-bound)
594
592
;; constrain v to be above S (but don't mention bounds)
595
593
(if (and maybe-type-bound (subtype S maybe-type-bound obj))
596
594
(singleton (var-promote S (context-bounds context)) v maybe-type-bound)
Original file line number Diff line number Diff line change 1680
1680
(int-err "Wrong number of names: expected ~a got ~a " n (length names)))
1681
1681
(eprintf "new bounds is ~a ~n " new-bounds)
1682
1682
(instantiate-type body
1683
-
1684
1683
(map (lambda (n)
1685
- (make-F n
1686
- (hash-ref new-bounds n #f )
1687
- )) names)
1684
+ (make-F n (hash-ref new-bounds n #f )))
1685
+ names)
1688
1686
#;
1689
1687
(map F* names))]))
1690
1688
Original file line number Diff line number Diff line change 715
715
[(tc-result1: (app resolve (and t (Poly-fresh: ns fresh-ns expected*))))
716
716
;; make sure the declared and annotated type variable arities match up
717
717
;; with the expected type variable arity
718
- (eprintf "app resolve tc-result ~n " )
719
718
(for ([tvars (in-list tvarss)])
720
719
(when (and (pair? tvars) (list? (car tvars)))
721
720
(tc-error
You can’t perform that action at this time.
0 commit comments