mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
26 lines
627 B
Java
26 lines
627 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8013222
|
|
* @summary Javac issues spurious raw type warnings when lambda has implicit parameter types
|
|
* @compile/fail/ref=NoWarnOnImplicitParams.out -Xlint:rawtypes -Werror -XDrawDiagnostics NoWarnOnImplicitParams.java
|
|
*/
|
|
import java.util.List;
|
|
|
|
class NoWarnOnImplicitParams {
|
|
|
|
public void testRawMerge(List<String> ls) {
|
|
R12 r12_1 = l->"Foo";
|
|
R12 r12_2 = (List l)->"Foo";
|
|
}
|
|
|
|
interface R1 {
|
|
Object m(List<String> ls);
|
|
}
|
|
|
|
@SuppressWarnings("rawtypes")
|
|
interface R2 {
|
|
String m(List l);
|
|
}
|
|
|
|
interface R12 extends R1, R2 {}
|
|
}
|