langtools/test/tools/javac/generics/Covar4.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 30724 0686b5ea7958
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 4965756
 * @summary no covariant returns involving primitives
 * @author gafter
 *
 * @compile/fail/ref=Covar4.out -XDrawDiagnostics  Covar4.java
 */

public class Covar4 {
    static class A1 {
        public long f() { return 12L; }
    }
    static class B1 extends A1 {
        public int f() { return 12; }
    }
}