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

changeset 1238
e28a06a3c5d9
parent 689
77cc34d5e548
child 1251
6f0ed5a89c25
equal deleted inserted replaced
1237:568e70bbd9aa 1238:e28a06a3c5d9
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 // key: compiler.misc.incompatible.types.1
25 // key: compiler.misc.infer.no.conforming.instance.exists 24 // key: compiler.misc.infer.no.conforming.instance.exists
26 // key: compiler.err.prob.found.req 25 // key: compiler.err.prob.found.req.1
27 26
28 class IncompatibleTypes1<V> { 27 class IncompatibleTypes1<V> {
29 <T extends Integer & Runnable> IncompatibleTypes1<T> m() { 28 <T extends Integer & Runnable> IncompatibleTypes1<T> m() {
30 return null; 29 return null;
31 } 30 }

mercurial