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 /test/files/jvm/protectedacc.scala | |
parent | 17aff1c1fbfefe1e261af6cf08ca5fceac32f1c7 (diff) | |
download | scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.tar.gz scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.tar.bz2 scala-bd1dd901215b6c93fbd798800c96e0fec5b560d8.zip |
More tests for protected accessors.
Diffstat (limited to 'test/files/jvm/protectedacc.scala')
-rw-r--r-- | test/files/jvm/protectedacc.scala | 4 |
1 files changed, 3 insertions, 1 deletions
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); |