Skip to content

Commit

Permalink
when called by emit-statement, there is a semi in caller emit-block
Browse files Browse the repository at this point in the history
i feel if this breaks do-declare, it should be fixed in do-declare
  • Loading branch information
kamisori committed May 9, 2023
1 parent 193d7bb commit 195d181
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spork/cjanet.janet
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,9 @@
[binding &opt value]
(def [v vtype] (type-split binding))
(emit-type vtype v)
(if (not= nil value)
(do
(prin " = ")
(emit-expression value true))
(print ";")))
(when (not= nil value)
(prin " = ")
(emit-expression value true)))

(varfn emit-statement
[form]
Expand Down

0 comments on commit 195d181

Please sign in to comment.