test/tools/javac/generics/6182950/T6182950a.java

Mon, 14 Nov 2011 15:11:10 -0800

author
ksrini
date
Mon, 14 Nov 2011 15:11:10 -0800
changeset 1138
7375d4979bd3
parent 384
ed31953ca025
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7106166: (javac) re-factor EndPos parser
Reviewed-by: jjg

mcimadamore@252 1 /*
jjg@384 2 * @test /nodynamiccopyright/
mcimadamore@252 3 * @bug 6182950
mcimadamore@252 4 * @summary methods clash algorithm should not depend on return type
mcimadamore@252 5 * @author mcimadamore
mcimadamore@252 6 * @compile/fail/ref=T6182950a.out -XDrawDiagnostics T6182950a.java
mcimadamore@252 7 */
mcimadamore@252 8 import java.util.List;
mcimadamore@252 9
mcimadamore@252 10 class T6182950a {
mcimadamore@252 11 int m(List<String> l) {return 0;}
mcimadamore@252 12 double m(List<Integer> l) {return 0;}
mcimadamore@252 13 }

mercurial