test/tools/javac/InterfaceInInner.java

Tue, 12 Mar 2013 16:02:43 +0000

author
mcimadamore
date
Tue, 12 Mar 2013 16:02:43 +0000
changeset 1628
5ddecb91d843
parent 890
3ab7bb46c5c1
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8009545: Graph inference: dependencies between inference variables should be set during incorporation
Summary: Move all transitivity checks into the incorporation round
Reviewed-by: jjg

     1 /*
     2  * @test  /nodynamiccopyright/
     3  * @bug 4063740 6969184
     4  * @summary Interfaces may only be declared in top level classes.
     5  * @author turnidge
     6  *
     7  * @compile/fail/ref=InterfaceInInner.out -XDrawDiagnostics InterfaceInInner.java
     8  */
     9 class InterfaceInInner {
    10     InterfaceInInner() {
    11         class foo {
    12             interface A {
    13             }
    14         }
    15     }
    16 }

mercurial