We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ns-ast-test
1 parent 9d88da9 commit 1ba34beCopy full SHA for 1ba34be
test-resources/clashing_defprotocol_method_name.clj
@@ -0,0 +1,10 @@
1
+(ns clashing-defprotocol-method-name
2
+ "Exercises that var shadowing (in this case: for `update`) doesn't cause any issue.")
3
+
4
+(defprotocol Repository
5
+ "Store and retrieve."
6
+ :extend-via-metadata true
7
+ (add [repository insert-params]
8
+ "Add to the repository.")
9
+ (update [repository update-params]
10
+ "Update."))
test/refactor_nrepl/analyzer_test.clj
@@ -5,6 +5,7 @@
[refactor-nrepl.analyzer :as sut]))
(deftest ns-ast-test
- (doseq [f ["core_async_usage.clj"]
+ (doseq [f ["core_async_usage.clj"
+ "clashing_defprotocol_method_name.clj"]
:let [c (-> f io/resource slurp)]]
11
(is (some? (sut/ns-ast c)))))
0 commit comments