diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Constants.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Constants.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Constants.scala b/src/dotty/tools/dotc/core/Constants.scala index cdfb62a18..b2949aae7 100644 --- a/src/dotty/tools/dotc/core/Constants.scala +++ b/src/dotty/tools/dotc/core/Constants.scala @@ -2,6 +2,7 @@ package dotty.tools.dotc package core import Types._, Symbols._, Contexts._ +import printing.Printer object Constants { @@ -189,7 +190,7 @@ object Constants { def stringValue: String = value.toString - def toText(implicit ctx: Context) = ctx.toText(this) + def toText(printer: Printer) = printer.toText(this) def typeValue: Type = value.asInstanceOf[Type] def symbolValue: Symbol = value.asInstanceOf[Symbol] |