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.compiler/src/org/eclipse/jdt/groovy/core/tests/xform/TypeCheckedTests.java
+18
Original file line number
Diff line number
Diff line change
@@ -766,6 +766,24 @@ public void testTypeChecked8909a() {
766
766
"----------\n");
767
767
}
768
768
769
+
@Test
770
+
publicvoidtestTypeChecked8974() {
771
+
//@formatter:off
772
+
String[] sources = {
773
+
"Main.groovy",
774
+
"def <T> T identity(T t) { t }\n" +
775
+
"@groovy.transform.TypeChecked\n" +
776
+
"void test() {\n" +
777
+
" List<String> list = identity(new ArrayList<>())\n" +
0 commit comments