diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/jvm/protectedacc.check | 1 | ||||
-rw-r--r-- | test/files/jvm/protectedacc.scala | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/files/jvm/protectedacc.check b/test/files/jvm/protectedacc.check index 632c9dabe7..9fce0faf7c 100644 --- a/test/files/jvm/protectedacc.check +++ b/test/files/jvm/protectedacc.check @@ -1,6 +1,7 @@ 10 meth1(1) = 2 meth2(1)(1) = 2 +meth3 = class [I 10++ = 11 count before: 3 count after: 4 diff --git a/test/files/jvm/protectedacc.scala b/test/files/jvm/protectedacc.scala index f54bb33d58..7914da0d72 100644 --- a/test/files/jvm/protectedacc.scala +++ b/test/files/jvm/protectedacc.scala @@ -30,6 +30,7 @@ package p { protected def meth1(x: Int) = x + 1; protected def meth2(x: Int)(y: Int) = x + y; + protected def meth3 = Array(1, 2) def getA: this.type = this; } @@ -46,6 +47,8 @@ package p { Console.println("meth1(1) = " + meth1(1)); Console.println("meth2(1)(1) = " + meth2(1)(1)); + Console.println("meth3 = " + meth3.getClass); + val inc = &meth2(1); Console.println("10++ = " + inc(10)); |