summaryrefslogtreecommitdiff
path: root/test/files/jvm/protectedacc.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/protectedacc.scala')
-rw-r--r--test/files/jvm/protectedacc.scala3
1 files changed, 3 insertions, 0 deletions
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));