Skip to content

Instantly share code, notes, and snippets.

@remleduff
Created May 22, 2010 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remleduff/410416 to your computer and use it in GitHub Desktop.
Save remleduff/410416 to your computer and use it in GitHub Desktop.
(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