<< Back to previous view

[ASYNC-57] reify in go macro compile error Created: 20/Feb/14  Updated: 04/Nov/14  Resolved: 04/Nov/14

Status: Closed
Project: core.async
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Lijin Liu Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None

[org.clojure/clojure "1.5.1"]
[org.clojure/core.async ""]


(reify java.util.Collection
(add [this o]
(println o)
(println this)

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: this in this context

Comment by Ghadi Shayban [ 22/Apr/14 9:55 AM ]

Reassigning to minor. The go macro will obviously not rewrite parking ops inside the reify. Lifting the reify into a var is a decent workaround.

Comment by Alex Miller [ 04/Nov/14 4:02 PM ]

Not supported.

Generated at Fri Jan 19 13:58:00 CST 2018 using JIRA 4.4#649-r158309.