Skip to content

Inline-symbol fails when core.async rewrites the code #182

@magnars

Description

@magnars

I guess the major rewrites of code that core.async does is a major hurdle for clj-refactor, quite possibly insurmountable. Here is an issue either way. Reproduce like this:

(ns example
  (:require [clojure.core.async :refer [timeout go <!]]))

(go
    (loop []
      (<! (timeout 10))
      (let [foos [1 2 3]]
        (doseq [foo foos]
          (prn foo)))))

Try to inline the foos symbol, get let*: Wrong type argument: hash-table-p, nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions