summaryrefslogtreecommitdiff
path: root/test/files/pos/caseaccs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/caseaccs.scala')
-rw-r--r--test/files/pos/caseaccs.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/caseaccs.scala b/test/files/pos/caseaccs.scala
new file mode 100644
index 0000000000..2668127fc9
--- /dev/null
+++ b/test/files/pos/caseaccs.scala
@@ -0,0 +1,11 @@
+class Test {
+ case class Foo(x: int, private var y: int)
+}
+
+object Test {
+ val test = new Test
+ val x = test.Foo(1, 2)
+ x match {
+ case test.Foo(x, y) => println(x); println(y)
+ }
+}