test/langtools/tools/javac/generics/TyparamStaticScope2.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 30724 langtools/test/tools/javac/generics/TyparamStaticScope2.java@0686b5ea7958
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse

/*
 * @test /nodynamiccopyright/
 * @bug 5046972
 * @summary type parameter referenced in static inner class improperly allowed!
 * @author gafter
 *
 * @compile/fail/ref=TyparamStaticScope2.out -XDrawDiagnostics  TyparamStaticScope2.java
 */

package typaram.static_.scope2;

class JBug<T> {
    static class Inner1 implements Set<T> {}
}

interface Set<T> {}