<< Back to previous view

[CLJS-626] extend-type with ungrouped multi-arity function needs an error message Created: 18/Oct/13  Updated: 19/Nov/13  Resolved: 19/Nov/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: George Fraser Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

0.0-1913



 Description   

The following incorrect code:

(deftype Foo [])
(extend-type Foo
IFn
(-invoke [this a] a))

produces a pretty incomprehensible error message. It is an extremely easy mistake to make as a beginner : the fact that extend-type has a different syntax for multiple-arity functions is not obvious at all. Would be helpful to have a real error message here.



 Comments   
Comment by David Nolen [ 19/Nov/13 9:21 PM ]

CLJS-433

Generated at Fri Oct 24 10:09:54 CDT 2014 using JIRA 4.4#649-r158309.