Skip to content

Instantly share code, notes, and snippets.

@anmonteiro
Last active March 23, 2016 14:06
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 anmonteiro/3a8fdc5ba085e3895254 to your computer and use it in GitHub Desktop.
Save anmonteiro/3a8fdc5ba085e3895254 to your computer and use it in GitHub Desktop.
`defprotocol` in advanced compilation bug
(ns bug.core)
(defprotocol IBug
(bug [this other] "A sample protocol"))
(defn MyBug [])
(specify! (.-prototype MyBug)
IBug
(bug [this other]
"bug")
Object
(foo [this]
(bug this 3)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment