2ef9a0fdaf
Fixes #158 Signed-off-by: Julien Danjou <julien@danjou.info>
13 lines
189 B
Hy
13 lines
189 B
Hy
(defn foodec [func]
|
|
(lambda [] (+ 1 1)))
|
|
|
|
|
|
(with-decorator foodec
|
|
(defn tfunction []
|
|
(* 2 2)))
|
|
|
|
|
|
(defn test-decorators []
|
|
"NATIVE: test decorators."
|
|
(assert (= (tfunction) 2)))
|