summaryrefslogtreecommitdiff
path: root/test/files/jvm/nest.java
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2008-09-01 13:56:12 +0000
committerIulian Dragos <jaguarul@gmail.com>2008-09-01 13:56:12 +0000
commit4b6277f8511bab6d4d0fc01f398bd9e967b94bdb (patch)
tree5f19a4128de401b769afd39b8e99f321fba4e1f9 /test/files/jvm/nest.java
parent906248a4b2dc4275a91c335af9d214aa883d1037 (diff)
downloadscala-4b6277f8511bab6d4d0fc01f398bd9e967b94bdb.tar.gz
scala-4b6277f8511bab6d4d0fc01f398bd9e967b94bdb.tar.bz2
scala-4b6277f8511bab6d4d0fc01f398bd9e967b94bdb.zip
Fixed #1315, outer instances are passed implici...
Fixed #1315, outer instances are passed implicitly. Reorganized nested classes tests.
Diffstat (limited to 'test/files/jvm/nest.java')
-rw-r--r--test/files/jvm/nest.java21
1 files changed, 21 insertions, 0 deletions
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);
+ }
+ }
}