Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace alias "str" clashes with function "str" #24

Closed
kennytilton opened this issue Apr 18, 2022 · 0 comments
Closed

Namespace alias "str" clashes with function "str" #24

kennytilton opened this issue Apr 18, 2022 · 0 comments

Comments

@kennytilton
Copy link

kennytilton commented Apr 18, 2022

This .cljd:

(ns tiltontec.model.base
  (:require
    [clojure.string :as str]))

(defn dummy [& bits]
  (str/join "," bits))

...fails to compile:

Compiling to Dart... @06:34
  tiltontec.model.base
What doesn’t kill you, makes you stronger. 🤔
Error while compiling (str/join "," bits)
(str/join "," bits)
(clojure.core/let [] (str/join "," bits))
(clojure.core/let [] (clojure.core/let [] (str/join "," bits)))
(let* [] (clojure.core/let [] (clojure.core/let [] (str/join "," bits))))
(do (clojure.core/let [] (clojure.core/let [] (str/join "," bits))))
(reify :var-name dummy :name-hint nil cljd.core/IFnMixin_Z cljd.core/Fn cljd.core/IFn ($_invoke$vararg [this15542 bits] (clojure.core/let [] (str/join "," bits))))
(fn* ([& bits] (str/join "," bits)))
(defn dummy [& bits] (str/join "," bits))
No matching clause: str

Guessing the alias "str" gets confused with the cljd str. Changing the alias to sth like "cljdstr" is a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant