-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Failing test for lambda impl methods being treated the same way as de…
…fault methods Reproduces #48
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
.../test/java/net/orfjackal/retrolambda/test/anotherpackage/UsesLambdasInAnotherPackage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 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 | ||
|
||
package net.orfjackal.retrolambda.test.anotherpackage; | ||
|
||
import java.util.concurrent.Callable; | ||
|
||
public interface UsesLambdasInAnotherPackage { | ||
|
||
default Callable<String> stateless() { | ||
return () -> "foo"; | ||
} | ||
|
||
default Callable<String> captureThis() { | ||
return () -> stateless().call(); | ||
} | ||
} |