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
+22
Original file line number
Diff line number
Diff line change
@@ -5116,6 +5116,28 @@ public void testTypeChecked10351() {
5116
5116
runConformTest(sources);
5117
5117
}
5118
5118
5119
+
@Test
5120
+
publicvoidtestTypeChecked10357() {
5121
+
//@formatter:off
5122
+
String[] sources = {
5123
+
"Main.groovy",
5124
+
"import java.util.function.Function\n" +
5125
+
"@groovy.transform.TypeChecked\n" +
5126
+
"abstract class A {\n" +
5127
+
" abstract long m(Function<Boolean,Integer> f = { Boolean b -> b ? +1 : -1 })\n" +
0 commit comments