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=T6946618b.out -XDrawDiagnostics T6946618b.java
561N/A */
561N/A
561N/Aclass T6946618b {
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<>(); //ok
561N/A }
561N/A }
561N/A}