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

Thu, 31 Aug 2017 15:17:03 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:17:03 +0800
changeset 2525
2eb010b6cb22
parent 384
ed31953ca025
parent 0
959103a6100f
permissions
-rw-r--r--

merge

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

mercurial