/* * @test /nodynamiccopyright/ * @bug 4916567 * @summary integrate improved wildcard substitution from CPH * @author gafter * * @compile/fail/ref=ParamCast.out -XDrawDiagnostics ParamCast.java */ class A {} class B extends A {} class Main { void f(A as) { Object o = (B) as; } }