blob: 67db60395eb577307d58e648d1e131e897144669 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package magnolia
sealed trait Tree
case class Branch(left: List[Leaf]) extends Tree
case class Leaf(node: List[String], right: List[Branch], left2: List[Branch], another: List[Leaf]) extends Tree
object Main {
def main(args: Array[String]): Unit = {
println(implicitly[Extractor[List[Leaf]]].extract(Thing("42")))
}
}
|