561N/A/*
561N/A * @test /nodynamiccopyright/
561N/A * @bug 6946618
561N/A * @summary sqe test fails: javac/generics/NewOnTypeParm in pit jdk7 b91 in all platforms.
561N/A * @author mcimadamore
561N/A * @compile/fail/ref=T6946618a.out -XDrawDiagnostics T6946618a.java
561N/A */
561N/A
561N/Aclass T6946618a {
561N/A static class C<T> {
561N/A T makeT() {
561N/A return new T(); //error
561N/A }
561N/A }
561N/A
561N/A static class D<S> {
561N/A C<S> makeC() {
561N/A return new C<S>(); //ok
561N/A }
561N/A }
561N/A}