summaryrefslogtreecommitdiff
path: root/test/files/jvm/protectedacc.scala
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2006-10-26 16:31:23 +0000
committerIulian Dragos <jaguarul@gmail.com>2006-10-26 16:31:23 +0000
commit17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7 (patch)
tree05e09938108c9cc4265b30ce67305c4328fc207b /test/files/jvm/protectedacc.scala
parentfab8b6d5c116571824fb32ef1c7f01f33e13cd01 (diff)
downloadscala-17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7.tar.gz
scala-17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7.tar.bz2
scala-17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7.zip
Fixed accessors for functions which access prot...
Fixed accessors for functions which access protected members.
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));