jdk-24/langtools/test/tools/javac/lambda/LambdaConv25.java
Maurizio Cimadamore 73b1aee3f4 8008444: Inherited generic functional descriptors are merged incorrectly
Missing call to Types.createMethodWithThrownTypes

Reviewed-by: jjg
2013-02-21 15:27:05 +00:00

22 lines
402 B
Java

/*
* @test /nodynamiccopyright/
* @summary check that merged inherited descriptors preservers type-parameters
* @compile/fail/ref=LambdaConv25.out -XDrawDiagnostics LambdaConv25.java
*/
class LambdaConv25 {
interface A {
<X> void m();
}
interface B {
<X> void m();
}
interface C extends A, B { }
void test() {
C c = ()->{}; //should fail
}
}