Skip to content

Commit

Permalink
test case
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Dec 9, 2024
1 parent 6c498b6 commit 2718d42
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,30 @@ public void issue1019() {
.doTest();
}

@Test
public void issue1082() {
makeHelper()
.addSourceLines(
"Main.java",
"package com.uber;",
"import java.util.Optional;",
"public class Main {",
" public interface Factory<T> {",
" T create();",
" }",
" public interface Expiry<K, V> {}",
" static class Config<K, V> {",
" Config<K, V> setFactory(Optional<Factory<? extends Expiry<K, V>>> factory) {",
" return null;",
" }",
" }",
" static void caller(Config config) {",
" config.setFactory(Optional.empty());",
" }",
"}")
.doTest();
}

private CompilationTestHelper makeHelper() {
return makeTestHelperWithArgs(
Arrays.asList(
Expand Down

0 comments on commit 2718d42

Please sign in to comment.