diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2015-05-09 21:36:51 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2015-05-09 21:36:51 +0200 |
commit | 839e47cc8a527a5777361bf750095739adb3c7eb (patch) | |
tree | f926a166c49b830bbe16b383c8dbcc6b8f551372 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | 37851350754403323b26c0c32417cbecc0c44584 (diff) | |
download | dotty-839e47cc8a527a5777361bf750095739adb3c7eb.tar.gz dotty-839e47cc8a527a5777361bf750095739adb3c7eb.tar.bz2 dotty-839e47cc8a527a5777361bf750095739adb3c7eb.zip |
Companion methods are not real methods
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 1d3434091..1ad718c29 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -482,9 +482,12 @@ object SymDenotations { * - not an accessor * - not a label * - not an anonymous function + * - not a companion method */ final def isRealMethod(implicit ctx: Context) = - this.is(Method, butNot = AccessorOrLabel) && !isAnonymousFunction + this.is(Method, butNot = AccessorOrLabel) && + !isAnonymousFunction && + !isCompanionMethod /** Is this a setter? */ final def isGetter(implicit ctx: Context) = |