<< Back to previous view

[TANAL-125] Analyzing defrecord macro-expansion after :refer-clojure :exclude [let] causes analysis error Created: 13/Jan/18  Updated: 15/Jan/18  Resolved: 15/Jan/18

Status: Closed
Project: tools.analyzer
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Andy Fingerhut Assignee: Nicola Mometto
Resolution: Completed Votes: 0
Labels: None


 Description   

I haven't dug into it yet, but I tried Eastwood 0.2.5 on the latest test.check as of 2018-Jan-13 today, and it gave error during tools.analyzer analysis of namespace clojure.test.check.generators because it could not find a definition for 'let'. 'let' is explicitly excluded in a :refer-clojure clause of the ns form for the namespace, so I am not sure why Clojure itself can compile this namespace, but there must be something different between Clojure and tools.analyzer going on here:

https://github.com/clojure/test.check/blob/master/src/main/clojure/clojure/test/check/generators.cljc#L27

In case you are wondering, I may not have ever tried Eastwood on test.check before today, so this may have been a problem with analyzing test.check for years before I noticed this.



 Comments   
Comment by Nicola Mometto [ 15/Jan/18 9:06 AM ]

Thanks Andy, fixed: https://github.com/clojure/tools.analyzer.jvm/commit/622093aff116c2a88faea9d32dd5d50611d504c2





Generated at Thu Jan 18 06:18:56 CST 2018 using JIRA 4.4#649-r158309.