annotate src/clojure/test_clojure/protocols/examples.clj @ 10:ef7dbbd6452c

added clojure source goodness
author Robert McIntyre <rlm@mit.edu>
date Sat, 21 Aug 2010 06:25:44 -0400
parents
children
rev   line source
rlm@10 1 (ns clojure.test-clojure.protocols.examples)
rlm@10 2
rlm@10 3 (defprotocol ExampleProtocol
rlm@10 4 "example protocol used by clojure tests"
rlm@10 5
rlm@10 6 (foo [a] "method with one arg")
rlm@10 7 (bar [a b] "method with two args")
rlm@10 8 (^String baz [a] [a b] "method with multiple arities")
rlm@10 9 (with-quux [a] "method name with a hyphen"))
rlm@10 10
rlm@10 11 (definterface ExampleInterface
rlm@10 12 (hinted [^int i])
rlm@10 13 (hinted [^String s]))
rlm@10 14