diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2006-10-26 16:31:23 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2006-10-26 16:31:23 +0000 |
commit | 17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7 (patch) | |
tree | 05e09938108c9cc4265b30ce67305c4328fc207b /test/files/jvm/protectedacc.scala | |
parent | fab8b6d5c116571824fb32ef1c7f01f33e13cd01 (diff) | |
download | scala-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.scala | 3 |
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)); |