langtools/test/tools/javac/ExtendsScope.java
author hannesw
Tue, 22 Mar 2016 14:23:16 +0100
changeset 36690 06b714373aa4
parent 26528 a1a7ad15183e
permissions -rw-r--r--
8151810: for-in iteration does not provide per-iteration scope Reviewed-by: attila, lagergren

/*
 * @test /nodynamiccopyright/
 * @bug 4402884
 * @summary javac improperly extends superclass's scope to implements clause
 * @author gafter
 *
 * @clean I
 * @compile/fail/ref=ExtendsScope.out -XDrawDiagnostics ExtendsScope.java
 */

class P {
    interface I {}
}

class T extends P implements I { // error: no I in scope
}