ClojureScript

vector-seq optimizations introduced un-conj-able sequence

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:

Description

Due to changes introduced in commit ddd7fa3d960b0fe32083d3cb35ff064e968d53c4 "attempting to optimize seq on vectors" the following code will fail with the an error:

(conj (rest [1 2]) 4)

The error is "No protocol method ICollection.-conj defined for type object: [object Object]" and the object in question is the reify result returned by vector-seq.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: