#322 Message not matching matcher need better error

Need_by_1.0
open
6
2006-11-30
2006-11-30
No

Currently, if an object with matchers doesn't match an incoming message, the reason for the last match failure is reported.

? def o { match ==1 { 2 } }

? o.foo()
# problem: ["foo", []] isn't 1

Instead, we should report a NoSuchMethodException.

Suggested by Kevin Reid.

Discussion


Log in to post a comment.