<< Back to previous view

[CLJ-1114] reify ignores :pre and :post Created: 25/Nov/12  Updated: 15/Dec/12  Resolved: 15/Dec/12

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.4
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: Yongqian Li Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None


 Description   

reify ignores :pre and :post assertions

user=> ((reify clojure.lang.IFn (invoke [this] {:pre [false]} (println "hello"))))
hello
nil
user=> ((fn [this] {:pre [false]} (println "hello")) 0)
AssertionError Assert failed: false user/eval39/fn--40 (NO_SOURCE_FILE:13)

Expected exception to be thrown



 Comments   
Comment by Stuart Halloway [ 25/Nov/12 6:52 PM ]

reify is not documented to support these, so this should be classified as an enhancement

Comment by Timothy Baldridge [ 30/Nov/12 2:51 PM ]

Vetted.

Generated at Thu Aug 28 04:18:20 CDT 2014 using JIRA 4.4#649-r158309.