langtools/test/tools/javac/generics/diamond/7030150/Neg01.java
changeset 9609 c256c93c5f41
parent 9398 5d86d0c7692e
parent 9608 385a828ba236
child 9610 ac6200e8bf05
child 9718 b3cd7279c463
--- a/langtools/test/tools/javac/generics/diamond/7030150/Neg01.java	Wed Jul 05 17:43:08 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-/*
- * @test /nodynamiccopyright/
- * @bug 7030150
- * @summary Type inference for generic instance creation failed for formal type parameter
- *          check that explicit type-argument that causes resolution failure is rejected
- * @compile/fail/ref=Neg01.out -XDrawDiagnostics Neg01.java
- */
-
-class Neg01 {
-
-    static class Foo<X> {
-        <T> Foo(T t) {}
-    }
-
-    Foo<Integer> fi1 = new <String> Foo<>(1);
-    Foo<Integer> fi2 = new <String> Foo<Integer>(1);
-}