aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1811/parameterizedWithInner/Code.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1811/parameterizedWithInner/Code.java')
-rw-r--r--tests/bugs1811/parameterizedWithInner/Code.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs1811/parameterizedWithInner/Code.java b/tests/bugs1811/parameterizedWithInner/Code.java
new file mode 100644
index 000000000..182a01d88
--- /dev/null
+++ b/tests/bugs1811/parameterizedWithInner/Code.java
@@ -0,0 +1,20 @@
+public class Code {
+ public static void main(String []argv) {
+ }
+}
+
+class Outer<T> {
+ class Inner {
+ T t;
+ Inner(T t) {
+ this.t =t ;
+ }
+ }
+
+ public Inner m() {return null;}
+ public Outer<String>.Inner m2() {
+ Outer<String> os = new Outer<String>();
+ return os.new Inner("foo");
+ }
+ public Outer<?>.Inner m3() {return null;}
+}