blob: 46bcf7aa1c996ca18a7c160e0c26cc2ed5c09f52 (
plain) (
blame)
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) => ()
}
}
}
|