-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sbt#446 from eed3si9n/wip/389
Ignore null in generic lambda tparams
- Loading branch information
Showing
3 changed files
with
41 additions
and
7 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
26 changes: 26 additions & 0 deletions
26
zinc/src/sbt-test/source-dependencies/java-lambda-typeparams/Example.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,26 @@ | ||
package typeparameters; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class Example { | ||
|
||
static <I, O> void call() { | ||
Supplier<BaseBlah<I, O>> blah = () -> | ||
new BaseBlah<I, O>() { | ||
@Override | ||
protected O getResponseInternal(I i) { | ||
return null; | ||
} | ||
}; | ||
} | ||
|
||
public static void main(String[] args) { | ||
Example.<String, String>call(); | ||
} | ||
} | ||
|
||
abstract class BaseBlah<I, O> { | ||
protected O getResponseInternal(I i) { | ||
return null; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
zinc/src/sbt-test/source-dependencies/java-lambda-typeparams/test
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 @@ | ||
> compile |