forgot to translate void
This commit is contained in:
parent
4949eef3c5
commit
8cd54d53f7
|
@ -318,6 +318,8 @@ EOF
|
|||
(loop (cdr val)))]
|
||||
[(boolean? val)
|
||||
(if val "true" "false")]
|
||||
[(void? val)
|
||||
"null"]
|
||||
[(empty? val)
|
||||
(format "Primitives.null")]
|
||||
[else
|
||||
|
|
|
@ -90,6 +90,9 @@
|
|||
;; Assigning a cons
|
||||
(test (E-single (make-AssignImmediateStatement 'val (make-Const (cons 1 2))))
|
||||
"1,2")
|
||||
;; Assigning a void
|
||||
(test (E-single (make-AssignImmediateStatement 'val (make-Const (void))))
|
||||
"null")
|
||||
;; Assigning to proc means val should still be uninitialized.
|
||||
(test (E-single (make-AssignImmediateStatement 'proc (make-Const "Danny")))
|
||||
"undefined")
|
||||
|
|
Loading…
Reference in New Issue
Block a user