proteus icon indicating copy to clipboard operation
proteus copied to clipboard

Proteus incorrectly rewrites access to fields which share a name with a proteus var

Open jamii opened this issue 12 years ago • 0 comments

Sup :)

(deftype Foo [x])

(clojure.core/let [remaining8730 (Foo. nil)]
    (proteus/let-mutable [y nil] (.x remaining8730)))
=> nil

(clojure.core/let [remaining8730 (Foo. nil)]
    (proteus/let-mutable [x nil] (.x remaining8730)))
=> java.lang.IllegalArgumentException: No matching method found: .x for class strucjure.sugar.Foo

jamii avatar Dec 04 '13 21:12 jamii