diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-09-01 13:56:12 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-09-01 13:56:12 +0000 |
commit | 4b6277f8511bab6d4d0fc01f398bd9e967b94bdb (patch) | |
tree | 5f19a4128de401b769afd39b8e99f321fba4e1f9 /test/files/jvm/nest.java | |
parent | 906248a4b2dc4275a91c335af9d214aa883d1037 (diff) | |
download | scala-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.java | 21 |
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); + } + } } |