From bd1dd901215b6c93fbd798800c96e0fec5b560d8 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Thu, 26 Oct 2006 16:37:41 +0000 Subject: More tests for protected accessors. --- test/files/jvm/protectedacc.check | 1 + test/files/jvm/protectedacc.scala | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'test/files/jvm') 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); -- cgit v1.2.3