Clojure

defprotocol: invalid method overload syntax getting accepted

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.5
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Approval:
    Vetted

Description

The compiler accepts both of these erroneous forms which while silly, are not imposible to come up with.

(defprotocol Foo (f ([this]) ([this arg])))
(defprotocol Bar (m [this]) (m [this arg]))

Activity

Timothy Baldridge made changes -
Field Original Value New Value
Approval Vetted [ 10003 ]
Affects Version/s Release 1.5 [ 10150 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: