Skip to content

Commit

Permalink
recreated :caffeine:compileTestJava error
Browse files Browse the repository at this point in the history
  • Loading branch information
haewiful committed Feb 4, 2025
1 parent 8a30816 commit 4f4ca89
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,24 @@ public void genericInferenceOnAssignmentsMultipleParams() {
.doTest();
}

@Test
public void genericsUsedForGenericClasses() {
makeHelper()
.addSourceLines(
"Test.java",
"package com.uber;",
"import java.util.ArrayList;",
"class Test {",
" abstract class Foo<K, V> {",
" abstract <K, V> Foo<K,ArrayList<V>> asFoo();",
" }",
" static void test(Foo<Void, Void> f) {",
" Foo<Integer, ArrayList<String>> foo = f.asFoo();",
" }",
"}")
.doTest();
}

@Test
public void issue1035() {
makeHelper()
Expand Down

0 comments on commit 4f4ca89

Please sign in to comment.