mcimadamore@1238: /* mcimadamore@1238: * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. mcimadamore@1238: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@1238: * mcimadamore@1238: * This code is free software; you can redistribute it and/or modify it mcimadamore@1238: * under the terms of the GNU General Public License version 2 only, as mcimadamore@1238: * published by the Free Software Foundation. mcimadamore@1238: * mcimadamore@1238: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@1238: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@1238: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@1238: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@1238: * accompanied this code). mcimadamore@1238: * mcimadamore@1238: * You should have received a copy of the GNU General Public License version mcimadamore@1238: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@1238: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@1238: * mcimadamore@1238: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA mcimadamore@1238: * or visit www.oracle.com if you need additional information or have any mcimadamore@1238: * questions. mcimadamore@1238: */ mcimadamore@1238: mcimadamore@1296: // key: compiler.err.prob.found.req mcimadamore@1238: // key: compiler.misc.cant.apply.diamond.1 mcimadamore@1268: // key: compiler.misc.inferred.do.not.conform.to.upper.bounds mcimadamore@1238: // key: compiler.misc.diamond mcimadamore@1238: mcimadamore@1238: class CantApplyDiamond1 { mcimadamore@1238: mcimadamore@1238: CantApplyDiamond1(CantApplyDiamond1 lz) { } mcimadamore@1238: mcimadamore@1238: void test(CantApplyDiamond1 li) { mcimadamore@1238: CantApplyDiamond1 ls = new CantApplyDiamond1<>(li); mcimadamore@1238: } mcimadamore@1238: }