Mon, 24 Oct 2011 13:00:30 +0100
7098660: Write better overload resolution/inference tests
Summary: Add overload/inference debug diagnostics - added test harness using annotations to check outcome of overload resolution/inference
Reviewed-by: jjg
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 7020657 6985719
4 *
5 * @summary Javac rejects a fairly common idiom with raw override and interfaces
6 * @author Maurizio Cimadamore
7 * @compile/fail/ref=T7020657neg.out -XDrawDiagnostics T7020657neg.java
8 *
9 */
11 import java.util.*;
13 class T7020657neg {
14 interface A {
15 int get(List<String> l);
16 }
18 interface B {
19 int get(List<Integer> l);
20 }
22 interface C extends A, B { }
23 }