Fix return tc-results when typechecking kw lambda.
original commit: 46701b6983c0c3269f6f7fbfa949ab9479b57cf8
This commit is contained in:
parent
bbf3ab9655
commit
a24c4717a9
|
@ -189,7 +189,7 @@
|
|||
[(tc-result1: (and f (or (Function: _)
|
||||
(Poly: _ (Function: _)))))
|
||||
(tc-expr/check/type #'fun (kw-convert f #:split #t))
|
||||
expected]
|
||||
(ret f -true-filter)]
|
||||
[(or (tc-results: _) (tc-any-results:))
|
||||
(tc-expr form)])]
|
||||
;; opt function def
|
||||
|
|
|
@ -2949,6 +2949,10 @@
|
|||
#:ret (ret (-polydots (A B ...) (->... (list A) (B B) (-values-dots (list A) B 'B))))
|
||||
#:expected (ret (-polydots (A B ...) (->... (list A) (B B) (-values-dots (list A) B 'B))))
|
||||
]
|
||||
[tc-e
|
||||
(tr:lambda (x #:y [y 3]) x)
|
||||
#:ret (ret (->key Univ #:y Univ #f Univ) -true-filter)
|
||||
#:expected (ret (->key Univ #:y Univ #f Univ) -no-filter)]
|
||||
|
||||
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user