aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 90a6a373c..bc7545abd 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -306,6 +306,7 @@ object Denotations {
}
final def asSingleDenotation = asInstanceOf[SingleDenotation]
+ final def asSymDenotation = asInstanceOf[SymDenotation]
def toText(printer: Printer): Text = printer.toText(this)
}
@@ -532,8 +533,6 @@ object Denotations {
*/
def copyIfParentInvalid(implicit ctx: Context): SingleDenotation = this
- final def asSymDenotation = asInstanceOf[SymDenotation]
-
override def toString =
if (symbol == NoSymbol) symbol.toString
else s"<SingleDenotation of type $info>"