From 4b6277f8511bab6d4d0fc01f398bd9e967b94bdb Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Mon, 1 Sep 2008 13:56:12 +0000 Subject: Fixed #1315, outer instances are passed implici... Fixed #1315, outer instances are passed implicitly. Reorganized nested classes tests. --- test/files/jvm/nest.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/files/jvm/nest.java') diff --git a/test/files/jvm/nest.java b/test/files/jvm/nest.java index 581eaa4972..3f6f0bebbd 100644 --- a/test/files/jvm/nest.java +++ b/test/files/jvm/nest.java @@ -14,4 +14,25 @@ public class nest { } } } + + + String name = "Outer name"; + + public class Inn { + int x; + + public Inn(int x) { + this.x = x; + } + + public void doSomething() { + System.out.println("Inn " + name + " x: " + x); + } + } + + protected class ProtInn { + public void doSomething() { + System.out.println("ProtInn " + name); + } + } } -- cgit v1.2.3