test/langtools/tools/javac/generics/Covar4.java
author vromero
Tue, 24 Apr 2018 08:13:30 -0700
changeset 49872 0798eab12791
parent 47216 71c04702a3d5
permissions -rw-r--r--
8201281: Truncated error message with Incompatible : null Reviewed-by: mcimadamore

/*
 * @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; }
    }
}