--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/langtools/test/tools/javac/generics/diamond/neg/Neg11.java Wed Apr 14 12:31:55 2010 +0100
@@ -0,0 +1,18 @@
+/*
+ * @test /nodynamiccopyright/
+ * @bug 6939620
+ *
+ * @summary Switch to 'complex' diamond inference scheme
+ * @author mcimadamore
+ * @compile/fail/ref=Neg11.out Neg11.java -XDrawDiagnostics
+ *
+ */
+
+class Neg11 {
+
+ void test() {
+ class Foo<X extends Number> { }
+ Foo<?> f1 = new UndeclaredName<>(); //this is deliberate: aim is to test erroneous path
+ Foo<?> f2 = new UndeclaredName<>() {}; //this is deliberate: aim is to test erroneous path
+ }
+}