Repository: groovy
Updated Branches:
  refs/heads/master e0d559663 -> a3f8671b5


Add test case for GROOVY-4757: Can't compile method with generic signatures and 
default visibility access


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/348465a1
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/348465a1
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/348465a1

Branch: refs/heads/master
Commit: 348465a1b193703c43aafeaabf2b286657d8493b
Parents: 1cb1260
Author: sunlan <[email protected]>
Authored: Thu Jan 19 18:53:34 2017 +0800
Committer: sunlan <[email protected]>
Committed: Thu Jan 19 18:53:34 2017 +0800

----------------------------------------------------------------------
 .../org/apache/groovy/parser/antlr4/GroovyParserTest.groovy | 5 +++++
 .../src/test/resources/bugs/BUG-GROOVY-4757.groovy          | 9 +++++++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/348465a1/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
 
b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
index 4344f30..3f3a63c 100644
--- 
a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
+++ 
b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
@@ -325,4 +325,9 @@ class GroovyParserTest extends GroovyTestCase {
     void "test groovy core - Unicode"() {
         doTest('core/Unicode_01.groovy');
     }
+
+    void "test groovy core - BUG"() {
+        doRunAndTest('bugs/BUG-GROOVY-4757.groovy');
+    }
+
 }

http://git-wip-us.apache.org/repos/asf/groovy/blob/348465a1/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4757.groovy
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4757.groovy
 
b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4757.groovy
new file mode 100644
index 0000000..cf2da99
--- /dev/null
+++ 
b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-4757.groovy
@@ -0,0 +1,9 @@
+package bugs
+
+class Foo {
+    <T extends Object> T foo(T t) {
+        return t
+    }
+}
+
+assert 'abc' == new Foo().foo('abc')
\ No newline at end of file

Reply via email to