Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

The following compiles and runs correctly:

`(ns cljs-letfn-go-bug.core
(:require [clojure.core.async :refer [go]]))

(go
(letfn [(foo [x] x)] (foo 1)))
`

However, this fails to compile with clojure.lang.ExceptionInfo: bindings must be vector of even number of elements...:

`
(ns cljs-letfn-go-bug.core
(:require-macros [cljs.core.async.macros :refer [go]]))

(go
(letfn [(foo [x] x)] (foo 1)))
`

2 Answers

0 votes
by

Comment made by: gabe.johnson

Please forgive the markdown. I haven't used JIRA in quite some time and don't appear to have permissions to edit the description.

0 votes
by
Reference: https://clojure.atlassian.net/browse/ASYNC-156 (reported by alex+import)
...