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 6799605
4 * @summary Basic/Raw formatters should use type/symbol printer instead of toString()
5 * @author mcimadamore
6 * @compile/fail/ref=T6799605.out -XDrawDiagnostics T6799605.java
7 * @compile/fail/ref=T6799605.out -XDoldDiags -XDrawDiagnostics T6799605.java
8 */
10 class T6799605<X> {
12 <T extends T6799605<T>> void m(T6799605<T> x1) {}
13 <T> void m(T6799605<T> x1, T6799605<T> x2) {}
14 <T> void m(T6799605<T> x1, T6799605<T> x2, T6799605<T> x3) {}
16 void test(T6799605<?> t) {
17 m(t);
18 m(t, t);
19 m(t, t, t);
20 }
21 }