/* * @test /nodynamiccopyright/ * @bug 4916607 4931647 * @summary an extends-bound (covariant) wildcard is like readonly * @author gafter * * @compile/fail/ref=Readonly.out -XDrawDiagnostics Readonly.java */ class Err { Err get() { return null; } void put(Err t) {} static void f(Err e) { e.put(e.get()); } }