diff -r 9f0ec00514b6 -r 3fef0cae83b3 test/tools/javac/lambda/LambdaConv25.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/tools/javac/lambda/LambdaConv25.java Thu Feb 21 15:27:05 2013 +0000 @@ -0,0 +1,21 @@ +/* + * @test /nodynamiccopyright/ + * @summary check that merged inherited descriptors preservers type-parameters + * @compile/fail/ref=LambdaConv25.out -XDrawDiagnostics LambdaConv25.java + */ +class LambdaConv25 { + + interface A { + void m(); + } + + interface B { + void m(); + } + + interface C extends A, B { } + + void test() { + C c = ()->{}; //should fail + } +}