BioJulia / IntervalTrees.jl

A data structure for efficient manipulation of sets of intervals
MIT License
44 stars 17 forks source link

IntervalTree with value = String fails on julia 0.3.3 #4

Closed juliangehring closed 9 years ago

juliangehring commented 9 years ago

Following the example in the readme, constructing and filling an IntervalTree with V being of class String

using IntervalTrees
x = IntervalTree{Int, String}()
x[(1,100)] = "Low"

fails with

ERROR: `_setindex!` has no method matching _setindex!(::LeafNode{Int64,String,64}, ::ASCIIString, ::Interval{Int64}, ::Bool)
in setindex! at /home/user/.julia/v0.3/IntervalTrees/src/IntervalTrees.jl:565
in setindex! at /home/user/.julia/v0.3/IntervalTrees/src/IntervalTrees.jl:562
juliangehring commented 9 years ago

Fixed with #5