Created
October 8, 2014 22:42
-
-
Save emidln/2b3a192b7e7f3d305f94 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 foo | |
(:require [plumbing.core :refer :all] | |
[schema.core :as s])) | |
(defprotocol Foo | |
(foo [this])) | |
;; this doesn't work, why? | |
(defnk cant-annotate-output-with-protocol-as-value :- {:foo Foo} | |
"docstring 1" | |
[baz :- s/Any]) | |
;; this works | |
(defnk can-annotate-output-with-protocol :- Foo | |
"docstring 2" | |
[baz :- s/Any]) | |
;; this works | |
(defnk can-annotate-input-with-protocol :- nil | |
"docstring 3" | |
[foo :- Foo]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment