title: Range.Partial[Double, NumericRange[Double]] Implicit conversion
body: <p>I have a question about implicit conversion...</p>
  
  <p><code>1 to 4: Range[Int] -&gt; Queue[Int]</code> conversion works nicely</p>
  
  <p>but <code>1.0 to 4.0 -&gt; Queue[Double]</code> doesn't works...</p>
  
  <p>what's the problem with my code below?</p>
  
  <p>=========================================</p>
  
  <pre><code>import scala.collection.immutable._
  
  sealed trait XS[A]{
    def print: Unit = this match {
      case RXS(q) =&gt; println(q)
      case LXS(msg) =&gt; println(msg)
    }
  }
  
  case class RXS[A](q: Queue[A]) extends XS[A]
  case class LXS[A](msg: String) extends XS[A]
  
  object XS {
  
    implicit def seqToQueue[A](seq: Seq[A]): Queue[A] = {
      seq.foldRight(Queue[A]())((a, acc) =&gt; a +: acc)
    }
  
    def apply[A](seq: Seq[A]): XS[A] = {
      RXS(seq)
    }
  }
  
  object XSTest extends App {
  
    val ran = 1 to 9 //Range
    val ob = XS(ran)
    ob.print
  
    /*val ran2 = 1.0 to 9.0 //Range.Partial[Double, NumericRange[Double]]
    val ob2 = XS(ran2)
    ob2.print*/
  }
  </code></pre>