aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 841d94b74..a05296802 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -422,7 +422,7 @@ object SymDenotations {
}
/** Is this a user defined "def" method? Excluded are accessors. */
- final def isSourceMethod(implicit ctx: Context) = this is (Method, butNot = Accessor)
+ final def isSourceMethod(implicit ctx: Context) = this is (Method, butNot = AccessorOrLabel)
/** Is this a setter? */
final def isGetter(implicit ctx: Context) =
@@ -1664,4 +1664,6 @@ object SymDenotations {
private final val NumBits = NumWords << WordSizeLog
private final val Mask = NumBits - 1
}
+
+ private val AccessorOrLabel = Accessor | Label
}