Return None in --init-- because due to a syntax flaw we have to!

This commit is contained in:
Christopher Allan Webber 2013-05-09 16:08:39 -05:00
parent 204bc9c39e
commit 0571bab382

View File

@ -451,7 +451,10 @@ In Hy:
(defclass FooBar [object]
[[--init--
(fn [self x]
(setv self.x x))]
(setv self.x x)
; Currently needed for --init-- because __init__ needs None
; Hopefully this will go away :)
None)]
[get-x
(fn [self]