Created
December 18, 2012 18:39
-
-
Save anonymous/4330709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling ClojureScript.
Compiling "main.js" from "src"...
WARNING: Symbol ITravail is not a protocol at line 4 src/essai/impl.cljs