Created
April 13, 2014 10:23
-
-
Save zilti/10577988 to your computer and use it in GitHub Desktop.
No method in multimethod 'check' for dispatch value: :reify
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 core-typed-bug.core | |
(:require [clojure.core.typed :refer :all])) | |
(ann-protocol ITypedTest | |
get-data [ITypedTest -> Any]) | |
(defprotocol> ITypedTest | |
(get-data [this])) | |
(ann typed-test [String -> ITypedTest]) | |
(defn typed-test [input] | |
(reify ITypedTest | |
(get-data [_] input))) | |
(defn> testfn :- Any | |
[asdf :- Keyword, in :- ITypedTest] | |
(get-data in)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment