marick/Midje — Issue #60: Don't allow prerequisite values for inlined functions
Author: marick
Created: 2011-11-04 21:37:51+00:00
State: open
Labels: wishlist

It doesn't work to override functions like #'+ because they're inlined. Processing of `provided` should consider an attempt to do so a user error.

```
(defn doubler [n] (+ n n))
(fact (doubler 3) => 0 (provided (+ 3 3) => 0)) ;;; Should be rejected
```

In Clojure 1.3 (at least), the var for a function that will be inlined has an :inline key in its metadata.