Issue #83 - Do not allow application of a const

This commit is contained in:
Justin Ethier 2016-07-09 02:45:34 -04:00
parent d78750ac09
commit 544be96f65

View file

@ -1364,6 +1364,10 @@
; (cps-seq (ast-subx ast) cont-ast))
((app? ast)
;; Syntax check the function
(if (const? (car ast))
(error "Call of non-procedure: " ast))
;; Do conversion
(let ((fn (app->fun ast)))
(cond
((lambda? fn)