mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Issue #83 - Do not allow application of a const
This commit is contained in:
parent
d78750ac09
commit
544be96f65
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue