ClojureScript

defmulti ignores optional :hierarchy argument

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    clojurescript 1552
  • Patch:
    Code and Test

Description

When an alternative hierarchy is provided to a defmulti declaration it should be used in place of the global hierarchy for isa?-based method dispatch. However, clojurescript multimethods seem to ignore this hierarchy and always use the global hierarchy. Test case provided.

Activity

Hide
Michał Marczyk added a comment - - edited

The attached patch fixes the issue and introduces a very basic, directly relevant test.

Show
Michał Marczyk added a comment - - edited The attached patch fixes the issue and introduces a very basic, directly relevant test.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: