test/tools/javac/lambda/LambdaConv25.java

Tue, 04 Jun 2013 11:31:12 +0100

author
mcimadamore
date
Tue, 04 Jun 2013 11:31:12 +0100
changeset 1799
32c50b5f70b5
parent 0
959103a6100f
permissions
-rw-r--r--

8008160: Five lambda TargetType tests have @ignore
Summary: Remove @ignore flags from tests that now pass
Reviewed-by: jjg

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @summary check that merged inherited descriptors preservers type-parameters
     4  * @compile/fail/ref=LambdaConv25.out -XDrawDiagnostics LambdaConv25.java
     5  */
     6 class LambdaConv25 {
     8     interface A {
     9         <X> void m();
    10     }
    12     interface B {
    13         <X> void m();
    14     }
    16     interface C extends A, B { }
    18     void test() {
    19         C c = ()->{}; //should fail
    20     }
    21 }

mercurial