mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-04 19:56:34 +02:00
Add a type check
This commit is contained in:
parent
ade50748b6
commit
40a2131fef
1 changed files with 31 additions and 30 deletions
|
@ -1623,10 +1623,11 @@
|
|||
(for-each
|
||||
(lambda (l)
|
||||
(let ((ast (caddr l)))
|
||||
(when (ast:lambda? ast)
|
||||
(with-fnc (ast:lambda-id ast) (lambda (fnc)
|
||||
(when (and (adbf:well-known fnc)
|
||||
(equal? (adbf:closure-size fnc) 1))
|
||||
(trace:error `(JAE ,l ,fnc))
|
||||
(trace:error `(JAE ,l ,fnc))
|
||||
(let* ((params-str (cdadr l))
|
||||
(args-str
|
||||
(string-join
|
||||
|
@ -1652,7 +1653,7 @@
|
|||
(if (> (string-length args-str) 0)
|
||||
(string-append "," args-str))
|
||||
");"
|
||||
"}")))))))
|
||||
"}"))))))))
|
||||
lambdas)
|
||||
|
||||
; Print the definitions:
|
||||
|
|
Loading…
Add table
Reference in a new issue