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/StaticCompilationTests.java
+24
Original file line number
Diff line number
Diff line change
@@ -778,6 +778,30 @@ public void testCompileStatic29() {
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
+24
Original file line number
Diff line number
Diff line change
@@ -1334,6 +1334,30 @@ public void testTypeChecked7128d() {
1334
1334
runConformTest(sources);
1335
1335
}
1336
1336
1337
+
@Test
1338
+
publicvoidtestTypeChecked7141() {
1339
+
//@formatter:off
1340
+
String[] sources = {
1341
+
"Main.groovy",
1342
+
"import groovy.transform.*\n" +
1343
+
"@PackageScope\n" +
1344
+
"interface I {\n" +
1345
+
" String f(String s)\n" +
1346
+
"}\n" +
1347
+
"@TypeChecked\n" +
1348
+
"void test(){\n" +
1349
+
" I impl = [\n" +
1350
+
" f: { it.toUpperCase() }\n" + // parameter type not inferred for coerced map
0 commit comments