diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2006-10-26 16:37:41 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2006-10-26 16:37:41 +0000 |
commit | bd1dd901215b6c93fbd798800c96e0fec5b560d8 (patch) | |
tree | caa860d5c154a02182e7c92a5af88e9d7efde8ab | |
parent | 17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7 (diff) | |
download | scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.tar.gz scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.tar.bz2 scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.zip |
More tests for protected accessors.
-rw-r--r-- | test/files/jvm/protectedacc.check | 1 | ||||
-rw-r--r-- | test/files/jvm/protectedacc.scala | 4 |
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); |