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
+27-4
Original file line number
Diff line number
Diff line change
@@ -1780,10 +1780,13 @@ public void testTypeChecked9074d() {
1780
1780
};
1781
1781
//@formatter:on
1782
1782
1783
-
runConformTest(sources);
1784
-
/*
1785
-
runNegativeTest(sources, "cannot convert from capture#1-of ? super Type to Type");
1786
-
*/
1783
+
runNegativeTest(sources,
1784
+
"----------\n" +
1785
+
"1. ERROR in Main.groovy (at line 7)\n" +
1786
+
"\tType bean = fact.make(rule.type)\n" +
1787
+
"\t ^^^^^^^^^^^^^^^^^^^^\n" +
1788
+
"Groovy:[Static type checking] - Cannot assign value of type java.lang.Object to variable of type Type\n" +
1789
+
"----------\n");
1787
1790
}
1788
1791
1789
1792
@Test
@@ -4228,4 +4231,24 @@ public void testTypeChecked10326() {
4228
4231
"Groovy:[Static type checking] - Cannot set read-only property: key\n" +
0 commit comments