groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwagenleit...@apache.org
Subject groovy git commit: GROOVY-8269: Unclear definition of default behavior for trait multiple inheritance conflicts (closes #582)
Date Sun, 13 Aug 2017 19:49:39 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X f7fbdb237 -> 5599b170e


GROOVY-8269: Unclear definition of default behavior for trait multiple inheritance conflicts
(closes #582)


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

Branch: refs/heads/GROOVY_2_5_X
Commit: 5599b170e40c485d051526eef9f5e102ce4a1dff
Parents: f7fbdb2
Author: John Wagenleitner <jwagenleitner@apache.org>
Authored: Sun Aug 13 12:07:33 2017 -0700
Committer: John Wagenleitner <jwagenleitner@apache.org>
Committed: Sun Aug 13 12:49:14 2017 -0700

----------------------------------------------------------------------
 src/spec/doc/core-traits.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/5599b170/src/spec/doc/core-traits.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-traits.adoc b/src/spec/doc/core-traits.adoc
index 37d5382..5bd17ce 100644
--- a/src/spec/doc/core-traits.adoc
+++ b/src/spec/doc/core-traits.adoc
@@ -309,8 +309,8 @@ include::{projectdir}/src/spec/test/TraitsSpecificationTest.groovy[tags=multiple
 <2> trait `B` defines the very same method
 <3> class `C` implements both traits
 
-In this case, the default behavior is that methods from the *last declared trait* wins. Here,
`B` is declared after `A`
-so the method from `B` will be picked up:
+In this case, the default behavior is that the method from the *last declared trait* in the
`implements` clause wins.
+Here, `B` is declared after `A` so the method from `B` will be picked up:
 
 [source,groovy]
 ----


Mime
View raw message