summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2006-10-26 16:37:41 +0000
committerIulian Dragos <jaguarul@gmail.com>2006-10-26 16:37:41 +0000
commitbd1dd901215b6c93fbd798800c96e0fec5b560d8 (patch)
treecaa860d5c154a02182e7c92a5af88e9d7efde8ab /test/files
parent17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7 (diff)
downloadscala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.tar.gz
scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.tar.bz2
scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.zip
More tests for protected accessors.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/jvm/protectedacc.check1
-rw-r--r--test/files/jvm/protectedacc.scala4
2 files changed, 4 insertions, 1 deletions
diff --git a/test/files/jvm/protectedacc.check b/test/files/jvm/protectedacc.check
index 9fce0faf7c..ae0f39b997 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
+meth2(1)(1) = 2
meth3 = class [I
10++ = 11
count before: 3
diff --git a/test/files/jvm/protectedacc.scala b/test/files/jvm/protectedacc.scala
index 7914da0d72..a6bc8984c4 100644
--- a/test/files/jvm/protectedacc.scala
+++ b/test/files/jvm/protectedacc.scala
@@ -45,7 +45,9 @@ package p {
def m = {
Console.println(x);
Console.println("meth1(1) = " + meth1(1));
- Console.println("meth2(1)(1) = " + meth2(1)(1));
+ // test accesses from closures
+ for (val x <- 1 until 3)
+ Console.println("meth2(1)(1) = " + meth2(1)(1));
Console.println("meth3 = " + meth3.getClass);