9ef5f6817 ^
1 2 3 4 5 6 7 8
case class Data(private val t: Option[String] = None, only: Boolean = false) { def add(other: Data) = { other match { case Data(None, b) => () case Data(Some(_), b) => () } } }