Check for prim:cont when known function is called via k

This commit is contained in:
Justin Ethier 2018-09-27 17:32:04 -04:00
parent 0a9cd2a6b7
commit 3b1f124b6a

View file

@ -2098,7 +2098,9 @@
;; Allow candidates to remain if they are just function calls
;; and they are called by the same function that defines them
((and cand
(equal? (ast:lambda-id cand) scope))
(equal? (ast:lambda-id cand) scope)
(not (any prim-call/cont? (cdr exp)))
)
(cdr exp))
(else
exp))))