Return None in --init-- because due to a syntax flaw we have to!
This commit is contained in:
parent
204bc9c39e
commit
0571bab382
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user