diff options
Diffstat (limited to 'test/files/jvm')
-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); |