|
Java example source code file (TargetType23.java)
The TargetType23.java Java example source code/* * @test /nodynamiccopyright/ * @bug 8003280 * @summary Add lambda tests * check case of ambiguous method call with lambda whose body cannot complete normally * @compile/fail/ref=TargetType23.out -XDrawDiagnostics TargetType23.java */ class TargetType23 { interface Sam0 { void m(); } interface Sam1 { int m(); } interface Sam2 { String m(); } interface Sam3<A> { A m(); } void call(Sam0 s) { } void call(Sam1 s) { } void call(Sam2 s) { } <Z> void call(Sam3 Other Java examples (source code examples)Here is a short list of links related to this Java TargetType23.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.