Skip to content

Commit 7f09b8f

Browse files
committed
Revert "WIP"
This reverts commit df6eb12.
1 parent 3243dc0 commit 7f09b8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

typed-racket-lib/typed-racket/typecheck/tc-app/tc-app-lambda.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
[acc-ty (or
111111
(type-annotation #'val #:infer #t)
112112
(match expected
113-
[(tc-result1: (and t (Listof: _)))
113+
[(tc-result1: (and t (or (? App? (app resolve-once (Listof: _))) (Listof: _))))
114114
t]
115115
[_ #f])
116116
(generalize -Null))])

typed-racket-lib/typed-racket/typecheck/tc-app/tc-app-list.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
;; special case for `reverse' to propagate expected type info
156156
(pattern ((~and fun (~or reverse k:reverse)) arg)
157157
(match expected
158-
[(tc-result1: (and return-ty (Listof: _)))
158+
[(tc-result1: (and return-ty (or (? App? (app resolve-once (Listof: _))) (Listof: _))))
159159
(begin0
160160
(tc-expr/check #'arg expected)
161161
(add-typeof-expr #'fun (ret (-> return-ty return-ty))))]

typed-racket-lib/typed-racket/types/tc-result.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
(lazy-require ["../typecheck/possible-domains.rkt" (cleanup-type)]
2222
["generalize.rkt" (generalize)]
2323
["subtype.rkt" (subtype)]
24-
["resolve.rkt" (resolve-once)]
2524
["printer.rkt" (pretty-format-rep)])
2625

2726
(define-generics tcresult-at-toplevel
@@ -150,6 +149,7 @@
150149
[(_ tp fp op exi) (tc-result tp fp op exi)]
151150
[(_ tp) (tc-result tp _ _ _)]))
152151

152+
153153
(define-match-expander tc-result1:
154154
(syntax-rules ()
155155
[(_ t) (tc-results: (list (tc-result: t _ _ _)) #f)]

0 commit comments

Comments
 (0)