Skip to content

Commit

Permalink
Test for reproducing issue #42
Browse files Browse the repository at this point in the history
  • Loading branch information
luontola committed Jan 6, 2015
1 parent a51e2ca commit a143fc9
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2013-2014 Esko Luontola <www.orfjackal.net>
// Copyright © 2013-2015 Esko Luontola <www.orfjackal.net>
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0

Expand Down Expand Up @@ -85,6 +85,15 @@ public void lambda_using_local_variables_of_primitive_types() throws Exception {
assertThat(lambda.call(), is(36));
}

@Test
public void lambda_in_the_constant_initializer_of_an_interface() throws Exception {
assertThat(LambdaConstant.LAMBDA.call(), is("foo"));
}

public interface LambdaConstant {
Callable<String> LAMBDA = () -> "foo";
}

@Test
public void method_references_to_virtual_methods() throws Exception {
String foo = "foo";
Expand Down

0 comments on commit a143fc9

Please sign in to comment.