Skip to content

Instantly share code, notes, and snippets.

Created July 15, 2012 13:43
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 anonymous/3116981 to your computer and use it in GitHub Desktop.
Save anonymous/3116981 to your computer and use it in GitHub Desktop.
(defprotocol SuperRunnable
(run [this] [this m] "Run. If m is specified object will run that distance"))
(defrecord Person [fname lname age]
SuperRunnable
(run [this] "Running…")
(run [this m] (str "Running " m " miles"))) ;=> java.lang.ClassCastException: clojure.lang.Var cannot be cast to java.lang.Class, compiling:(NO_SOURCE_PATH:14:2)||
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment