blob: 1dda9bf57cf0172bcdd02f8393c4e7301d6a9c2d (
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) => ()
}
}
}
|