File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 44
44
<artifactId >manifold-props</artifactId >
45
45
<version >${manifold.version} </version >
46
46
</path >
47
+ <path >
48
+ <groupId >systems.manifold</groupId >
49
+ <artifactId >manifold-params</artifactId >
50
+ <version >${manifold.version} </version >
51
+ </path >
47
52
<path >
48
53
<groupId >com.h2database</groupId >
49
54
<artifactId >h2</artifactId >
76
81
<artifactId >manifold-props-rt</artifactId >
77
82
<version >${manifold.version} </version >
78
83
</dependency >
84
+ <dependency >
85
+ <groupId >systems.manifold</groupId >
86
+ <artifactId >manifold-params-rt</artifactId >
87
+ <version >${manifold.version} </version >
88
+ </dependency >
79
89
<dependency >
80
90
<groupId >com.h2database</groupId >
81
91
<artifactId >h2</artifactId >
Original file line number Diff line number Diff line change
1
+ package t689 ;
2
+
3
+ import java .util .function .Function ;
4
+
5
+ public class Test {
6
+
7
+ public static void main (String [] args ) {
8
+ // works
9
+ new Foo (s -> s .length ());
10
+ new Foo (String ::length );
11
+
12
+ Function <String , Integer > fooFunction = String ::length ;
13
+ new Foo (fooFunction :fooFunction );
14
+
15
+ // error
16
+
17
+ new Foo (fooFunction :s -> s .length ());
18
+ new Foo (fooFunction :String ::length );
19
+ }
20
+
21
+
22
+ public static class Foo {
23
+ private final Function <String , Integer > fooFunction ;
24
+ private final boolean bar ;
25
+
26
+ Foo (Function <String , Integer > fooFunction , boolean bar = false ){
27
+ this .fooFunction =fooFunction ;
28
+ this .bar = bar ;
29
+ }
30
+ }
31
+ }
You can’t perform that action at this time.
0 commit comments