1 /*
2  * @test /nodynamiccopyright/
3  * @bug 4402884
4  * @summary javac improperly extends superclass's scope to implements clause
5  * @author gafter
6  *
7  * @clean I
8  * @compile/fail/ref=ExtendsScope.out -XDrawDiagnostics ExtendsScope.java
9  */
10 
11 class P {
12     interface I {}
13 }
14 
15 class T extends P implements I { // error: no I in scope
16 }
17