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/Groovy25InferencingTests.java
+4-2Lines changed: 4 additions & 2 deletions
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.
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.builder/src/org/eclipse/jdt/core/groovy/tests/search/StaticInferencingTests.java
+94-28Lines changed: 94 additions & 28 deletions
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.
@@ -746,74 +746,140 @@ public void testStaticImport1() {
746
746
createUnit("p", "Other", "package p\nclass Other { static int FOO\n static boolean BAR() {}}");
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/basic/GroovyCompilerTestSuite.java
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/basic/TraitsTests.java
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3085,4 +3085,25 @@ public void testTraits10894() {
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/xform/GrabTests.java
+3-3Lines changed: 3 additions & 3 deletions
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.
Copy file name to clipboardExpand all lines: base-test/org.eclipse.jdt.groovy.core.tests.compiler/src/org/eclipse/jdt/groovy/core/tests/xform/RecordTypeTests.java
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -158,10 +158,31 @@ public void testRecordType6() {
158
158
runConformTest(sources, "", "Assertion failed");
159
159
}
160
160
161
-
@Test
161
+
@Test// GROOVY-11041
162
162
publicvoidtestRecordType7() {
163
163
assumeTrue(isParrotParser());
164
164
165
+
//@formatter:off
166
+
String[] sources = {
167
+
"Script.groovy",
168
+
"print new Simple(1,'x').n()\n",
169
+
170
+
"Simple.groovy",
171
+
"record Simple(Number n, String s) {\n" +
172
+
" Number n() {\n" +
173
+
" n + 41\n" +
174
+
" }\n" +
175
+
"}\n",
176
+
};
177
+
//@formatter:on
178
+
179
+
runConformTest(sources, "42");
180
+
}
181
+
182
+
@Test
183
+
publicvoidtestRecordType8() {
184
+
assumeTrue(isParrotParser());
185
+
165
186
//@formatter:off
166
187
String[] sources = {
167
188
"Main.java",
@@ -185,7 +206,7 @@ public void testRecordType7() {
185
206
}
186
207
187
208
@Test
188
-
publicvoidtestRecordType8() {
209
+
publicvoidtestRecordType9() {
189
210
assumeTrue(isParrotParser());
190
211
191
212
//@formatter:off
@@ -252,7 +273,7 @@ public void testRecordType8() {
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
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8142,4 +8142,33 @@ public void testCompileStatic10933() {
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
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1943,7 +1943,7 @@ public void testTypeChecked8136() {
1943
1943
"1. ERROR in Main.groovy (at line 5)\n" +
1944
1944
"\tMVM m = [:]\n" +
1945
1945
"\t ^^^\n" +
1946
-
"Groovy:[Static type checking] - Cannot find matching constructor MVM(java.util.LinkedHashMap)\n" +
0 commit comments