summaryrefslogblamecommitdiff
path: root/test/files/pos/t1014.scala
blob: 3fc10d10dc06071ff2f38d4044dc6c321e530fb1 (plain) (tree)
1
2
3
4
5

                                


                                                                                                       









                                                           
import scala.xml.{NodeSeq, Elem}

class EO extends App with Moo {
  // return type is Flog, inherited from overridden method.
  // implicit conversions are applied because expected type `pt` is `Flog` when `computeType(rhs, pt)`.
  def cat = <cat>dog</cat>

  implicit def nodeSeqToFlog(in: Elem): Flog = new Flog(in)
}

trait Moo {
  def cat: Flog
}

class Flog(val in: NodeSeq)