Created
March 24, 2015 22:39
-
-
Save dmitrig01/b7eac75c3a2b0d98ce78 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 midje-test.a) | |
(defprotocol A (a [_])) |
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 midje-test.core | |
(:require [midje.open-protocols :refer [defrecord-openly]] | |
[midje-test.a :refer [A]])) | |
(defrecord-openly B [] | |
A | |
(a [_] (prn "something"))) | |
;; this becomes | |
;; (clojure.core/defrecord B [] | |
;; A | |
;; (a | |
;; [_] | |
;; (if | |
;; (midje.data.prerequisite-state/implements-a-fake? a) <-- obviously "a" is not defined here | |
;; (clojure.core/apply a [_]) <-- nor here | |
;; (do (prn "something"))))) | |
(defn -main [& args] | |
(prn "hi")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment