test/tools/javac/lambda/TargetType01.java

changeset 1677
94a202228ec2
parent 1510
7873d37f5b37
child 2000
4a6acc42c3a1
equal deleted inserted replaced
1676:e9d986381414 1677:94a202228ec2
1 /* 1 /*
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 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 /* 24 /*
25 * @test 25 * @test
26 * @bug 8003280 26 * @bug 8003280 8009131
27 * @summary Add lambda tests 27 * @summary Add lambda tests
28 * check nested case of overload resolution and lambda parameter inference 28 * check nested case of overload resolution and lambda parameter inference
29 * @author Maurizio Cimadamore 29 * @compile TargetType01.java
30 * @compile/fail/ref=TargetType01.out -XDrawDiagnostics TargetType01.java
31 */ 30 */
32 31
33 class TargetType01 { 32 class TargetType01 {
34 33
35 interface Func<A,B> { 34 interface Func<A,B> {

mercurial