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



The following incorrect code:

(deftype Foo [])
(extend-type Foo
(-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.

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


Generated at Sat Jan 20 13:22:47 CST 2018 using JIRA 4.4#649-r158309.