File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -482,9 +482,12 @@ object SymDenotations {
482
482
* - not an accessor
483
483
* - not a label
484
484
* - not an anonymous function
485
+ * - not a companion method
485
486
*/
486
487
final def isRealMethod (implicit ctx : Context ) =
487
- this .is(Method , butNot = AccessorOrLabel ) && ! isAnonymousFunction
488
+ this .is(Method , butNot = AccessorOrLabel ) &&
489
+ ! isAnonymousFunction &&
490
+ ! isCompanionMethod
488
491
489
492
/** Is this a setter? */
490
493
final def isGetter (implicit ctx : Context ) =
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ object ValueClasses {
24
24
isDerivedValueClass(d.owner) &&
25
25
! d.isConstructor &&
26
26
! d.is(SuperAccessor ) &&
27
- ! d.is(Macro ) &&
28
- ! d.isCompanionMethod
27
+ ! d.is(Macro )
29
28
30
29
/** The member that of a derived value class that unboxes it. */
31
30
def valueClassUnbox (d : ClassDenotation )(implicit ctx : Context ): Symbol =
You can’t perform that action at this time.
0 commit comments