Details

      Description

      [minimized from the original report]

      abstract class Template[T <: AnyRef](private val t: T) {
       
        type Repr[T]<:Template[T]
       
        def withTimeout(timeout:Long): Repr[T] = this.asInstanceOf[Repr[T]]
        def withReadModifiers(readModifiers:Int): Repr[T] = this.asInstanceOf[Repr[T]]
      }
       
      class Curve
       
      class CurveTemplate [T <: Curve](t: T) extends Template(t) {
        type Repr = CurveTemplate[T]
      }
       
       
      object Example {
       new CurveTemplate(new Curve).withTimeout(2000L).withReadModifiers(0)
      }
      

        Attachments

          Activity

            People

            • Assignee:
              plocinic Hubert Plociniczak
              Reporter:
              edmondo1984 Edmondo Porcu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: