You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by sh...@apache.org on 2016/06/18 03:40:34 UTC

groovy git commit: small tweak to test for GROOVY-7185

Repository: groovy
Updated Branches:
  refs/heads/master 1aba75218 -> ffa963cd4


small tweak to test for GROOVY-7185


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

Branch: refs/heads/master
Commit: ffa963cd4b842a0f363757c306f9323db80d016b
Parents: 1aba752
Author: Shil Sinha <sh...@apache.org>
Authored: Fri Jun 17 23:35:20 2016 -0400
Committer: Shil Sinha <sh...@apache.org>
Committed: Fri Jun 17 23:35:20 2016 -0400

----------------------------------------------------------------------
 src/test/groovy/OverrideTest.groovy | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/ffa963cd/src/test/groovy/OverrideTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/OverrideTest.groovy b/src/test/groovy/OverrideTest.groovy
index db7537f..9740d16 100644
--- a/src/test/groovy/OverrideTest.groovy
+++ b/src/test/groovy/OverrideTest.groovy
@@ -196,24 +196,24 @@ def d = new Derived()
     //GROOVY-7185
     void testArrayReturnTypeCovarianceGenericsVariant() {
         assertScript '''
-            public interface A<T> {
+            interface A<T> {
                 T[] process();
             }
 
-            public class B implements A<String> {
+            class B implements A<String> {
                 @Override
                 public String[] process() {
-                    return new String[0];
+                    ['foo']
                 }
             }
 
             class C extends B {
                 @Override
                 String[] process() {
-                    return super.process()
+                    super.process()
                 }
             }
-            new C()
+            assert new C().process()[0] == 'foo'
         '''
     }
 }