core.async

(CLJS) go block containing letfn does not compile

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    [org.clojure/clojure "1.8.0-RC3"]
    [org.clojure/clojurescript "1.7.189"]
    [org.clojure/core.async "0.2.374"]
  • Approval:
    Triaged

Description

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)))

Activity

Hide
Gabe Johnson added a comment -

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

Show
Gabe Johnson added a comment - Please forgive the markdown. I haven't used JIRA in quite some time and don't appear to have permissions to edit the description.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: