You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.builder/src/org/eclipse/jdt/core/groovy/tests/search/GenericInferencingTests.java
+37
Original file line number
Diff line number
Diff line change
@@ -1797,6 +1797,43 @@ public void testCircularReference2() {
1797
1797
assertType(contents, offset, offset + 8, "Scorable<? super T,FeatureName>");
1798
1798
}
1799
1799
1800
+
@Test// GROOVY-10671
1801
+
publicvoidtestCircularReference3() {
1802
+
createJavaUnit("p", "ObjectAssert",
1803
+
"package p;\n" +
1804
+
"abstract class ObjectAssert<SELF extends ObjectAssert<SELF>> {\n" +
1805
+
" SELF as(String description) {\n" +
1806
+
" return (SELF) this;\n" +
1807
+
" }\n" +
1808
+
"}\n");
1809
+
1810
+
createJavaUnit("p", "IterableAssert",
1811
+
"package p;\n" +
1812
+
"abstract class IterableAssert<SELF extends IterableAssert<SELF>> extends ObjectAssert<SELF> {\n" +
1813
+
"}\n");
1814
+
1815
+
createJavaUnit("p", "CollectionAssert",
1816
+
"package p;\n" +
1817
+
"abstract class CollectionAssert<SELF extends CollectionAssert<SELF>> extends IterableAssert<SELF> {\n" +
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/basic/GenericsTests.java
+45-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2009-2022 the original author or authors.
2
+
* Copyright 2009-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -2647,6 +2647,50 @@ public void testWildcards7() {
0 commit comments