Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2012 18:39
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/4330709 to your computer and use it in GitHub Desktop.
Save anonymous/4330709 to your computer and use it in GitHub Desktop.
(ns essai.core)
(defprotocol ITravail
(travail [this]))
;; and in the other file
(ns essai.impl
(:use [essai.core :only [ITravail travail]]))
(deftype Personne []
ITravail
(travail [this] "no"))
@antoineB
Copy link

Compiling ClojureScript.
Compiling "main.js" from "src"...
WARNING: Symbol ITravail is not a protocol at line 4 src/essai/impl.cljs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment