blob: 6fb7f7ba494af885b76c9d01ffee2a887b11837a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class NodeSeq
class Elem extends NodeSeq
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 = (??? : Elem)
implicit def nodeSeqToFlog(in: Elem): Flog = new Flog(in)
}
trait Moo {
def cat: Flog
}
class Flog(val in: NodeSeq)
|