Skip to content

Commit aaf0b8b

Browse files
committed
Test passing a method to instantiate an interface
1 parent 9630c8a commit aaf0b8b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package fj.function;
2+
3+
import fj.F;
4+
import org.junit.Test;
5+
6+
/**
7+
* Created by mperry on 28/08/2014.
8+
*/
9+
public class TestEffect {
10+
11+
@Test
12+
public void test1() {
13+
higher(TestEffect::m1);
14+
}
15+
16+
17+
static void higher(Effect1<String> f) {
18+
19+
}
20+
21+
static void m1(String s) {
22+
23+
}
24+
25+
}

0 commit comments

Comments
 (0)