test/tools/javac/diags/examples/CantApplyDiamond1.java

changeset 1562
2154ed9ff6c8
parent 1296
cddc2c894cc6
child 2525
2eb010b6cb22
equal deleted inserted replaced
1561:073696f59241 1562:2154ed9ff6c8
1 /* 1 /*
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 // key: compiler.err.prob.found.req 24 // key: compiler.err.prob.found.req
25 // key: compiler.misc.cant.apply.diamond.1 25 // key: compiler.misc.cant.apply.diamond.1
26 // key: compiler.misc.inferred.do.not.conform.to.upper.bounds 26 // key: compiler.misc.incompatible.eq.upper.bounds
27 // key: compiler.misc.diamond 27 // key: compiler.misc.diamond
28 28
29 class CantApplyDiamond1<X> { 29 class CantApplyDiamond1<X> {
30 30
31 CantApplyDiamond1(CantApplyDiamond1<? super X> lz) { } 31 CantApplyDiamond1(CantApplyDiamond1<? super X> lz) { }

mercurial