Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defprotocol Base
(test-foo [o]))
(deftype Impl []
Base
(test-foo [_] "test"))
(defprotocol Base)
(defprotocol Base
(test-foo [o]))
(testing "Changing a protocol, then restoring the original preserves extenders"
(is (= "test" (test-foo (Impl.)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.