We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c63ad6 commit 9ad1b29Copy full SHA for 9ad1b29
src/test/groovy/bugs/Groovy5318Bug.groovy
@@ -19,12 +19,18 @@
19
package groovy.bugs
20
21
import gls.CompilableTestSupport
22
+import org.codehaus.groovy.control.CompilerConfiguration
23
24
class Groovy5318Bug extends CompilableTestSupport {
25
void testTypeArgumentsOnlyOnTheLastComponent() {
26
def message = shouldNotCompile """
27
def a = new java.util<Integer>.ArrayList<ArrayList<Integer>>()
28
"""
- assert message.contains('Unexpected type arguments found prior to: ArrayList')
29
+
30
+ if (CompilerConfiguration.DEFAULT.antlr2Parser) {
31
+ assert message.contains('Unexpected type arguments found prior to: ArrayList')
32
+ } else {
33
+ assert message.contains('Unexpected input: \'new java.util<Integer>.\'')
34
+ }
35
}
36
0 commit comments