File: TargetType57.java

package info (click to toggle)
libnb-javaparser-java 9%2B2018-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 65,320 kB
  • sloc: java: 440,096; xml: 6,359; sh: 865; makefile: 314
file content (20 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * @test /nodynamiccopyright/
 * @bug 8007464
 * @summary Add graph inference support
 *          more smoke tests for graph inference
 * @compile/fail/ref=TargetType57.out -XDrawDiagnostics TargetType57.java
 */
import java.util.*;
import java.util.function.*;

class TargetType57 {

    void test(List<Integer> list) {
        m(list, s -> s.intValue(), s -> s.nonExistentMethod());
    }

    <U, R, S_IN, S_OUT> R m(List<S_IN> list,
                        Function<S_IN, S_OUT> f1,
                        Function<S_OUT, R> f2) { return null; }
}