diff options
Diffstat (limited to 'test/files/pos/virtpatmat_instof_valuetype.scala')
-rw-r--r-- | test/files/pos/virtpatmat_instof_valuetype.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/virtpatmat_instof_valuetype.scala b/test/files/pos/virtpatmat_instof_valuetype.scala new file mode 100644 index 0000000000..1dda9bf57c --- /dev/null +++ b/test/files/pos/virtpatmat_instof_valuetype.scala @@ -0,0 +1,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) => () + } + } +}
\ No newline at end of file |