<< 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


reify ignores :pre and :post assertions

user=> ((reify clojure.lang.IFn (invoke [this] {:pre [false]} (println "hello"))))
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

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 ]


Generated at Thu Jan 18 00:26:25 CST 2018 using JIRA 4.4#649-r158309.